@trackunit/geo-json-utils 1.7.27 → 1.7.30
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/src/GeoJsonUtils.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -304,7 +304,7 @@ const getBoundingBoxFromGeoJsonPolygon = (polygon) => {
|
|
|
304
304
|
* and we need to avoid the polygon being ambiguous about which side of the meridian it wraps around.
|
|
305
305
|
* so if it crosses the meridian, we return a MultiPolygon with two polygons, one for the western hemisphere and one for the eastern hemisphere.
|
|
306
306
|
* @param boundingBox The bounding box to create a polygon from
|
|
307
|
-
* @returns The polygon created from the bounding box
|
|
307
|
+
* @returns {GeoJsonMultiPolygon | GeoJsonPolygon} The polygon created from the bounding box
|
|
308
308
|
*/
|
|
309
309
|
const getGeoJsonPolygonFromBoundingBox = (boundingBox) => {
|
|
310
310
|
const { nw, se } = boundingBox;
|
package/index.esm.js
CHANGED
|
@@ -302,7 +302,7 @@ const getBoundingBoxFromGeoJsonPolygon = (polygon) => {
|
|
|
302
302
|
* and we need to avoid the polygon being ambiguous about which side of the meridian it wraps around.
|
|
303
303
|
* so if it crosses the meridian, we return a MultiPolygon with two polygons, one for the western hemisphere and one for the eastern hemisphere.
|
|
304
304
|
* @param boundingBox The bounding box to create a polygon from
|
|
305
|
-
* @returns The polygon created from the bounding box
|
|
305
|
+
* @returns {GeoJsonMultiPolygon | GeoJsonPolygon} The polygon created from the bounding box
|
|
306
306
|
*/
|
|
307
307
|
const getGeoJsonPolygonFromBoundingBox = (boundingBox) => {
|
|
308
308
|
const { nw, se } = boundingBox;
|
package/package.json
CHANGED
package/src/GeoJsonUtils.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare const getBoundingBoxFromGeoJsonPolygon: (polygon: GeoJsonPolygon
|
|
|
33
33
|
* and we need to avoid the polygon being ambiguous about which side of the meridian it wraps around.
|
|
34
34
|
* so if it crosses the meridian, we return a MultiPolygon with two polygons, one for the western hemisphere and one for the eastern hemisphere.
|
|
35
35
|
* @param boundingBox The bounding box to create a polygon from
|
|
36
|
-
* @returns The polygon created from the bounding box
|
|
36
|
+
* @returns {GeoJsonMultiPolygon | GeoJsonPolygon} The polygon created from the bounding box
|
|
37
37
|
*/
|
|
38
38
|
export declare const getGeoJsonPolygonFromBoundingBox: (boundingBox: TuBoundingBox) => GeoJsonMultiPolygon | GeoJsonPolygon;
|
|
39
39
|
/**
|