@trackunit/geo-json-utils 1.4.31 → 1.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -386,7 +386,7 @@ const getExtremeGeoJsonPointFromPolygon = ({ polygon, direction, }) => {
|
|
|
386
386
|
throw new Error(`${direction} is not known`);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
}, polygonParsed.data.coordinates[0]
|
|
389
|
+
}, polygonParsed.data.coordinates[0][0]);
|
|
390
390
|
return extremePosition
|
|
391
391
|
? {
|
|
392
392
|
type: "Point",
|
package/index.esm.js
CHANGED
|
@@ -384,7 +384,7 @@ const getExtremeGeoJsonPointFromPolygon = ({ polygon, direction, }) => {
|
|
|
384
384
|
throw new Error(`${direction} is not known`);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
}, polygonParsed.data.coordinates[0]
|
|
387
|
+
}, polygonParsed.data.coordinates[0][0]);
|
|
388
388
|
return extremePosition
|
|
389
389
|
? {
|
|
390
390
|
type: "Point",
|