We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 305e885 + 8b09271 commit 43f51faCopy full SHA for 43f51fa
lib/core.js
@@ -5,7 +5,7 @@ var wgs84 = proj('WGS84');
5
function transformer(from, to, coords) {
6
var transformedArray, out, keys;
7
if (Array.isArray(coords)) {
8
- transformedArray = transform(from, to, coords);
+ transformedArray = transform(from, to, coords) || {x: NaN, y: NaN};
9
if (coords.length > 2) {
10
if ((typeof from.name !== 'undefined' && from.name === 'geocent') || (typeof to.name !== 'undefined' && to.name === 'geocent')) {
11
if (typeof transformedArray.z === 'number') {
0 commit comments