@osimatic/helpers-js 1.4.16 → 1.4.17
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/location.js +2 -2
- package/package.json +1 -1
package/location.js
CHANGED
|
@@ -460,7 +460,7 @@ class Polygon {
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
const [firstLon, firstLat] = ring0[0];
|
|
463
|
-
return asString ?
|
|
463
|
+
return asString ? firstLat+','+firstLon : [firstLat, firstLon];
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
static convertToGeoJson(latlngs) {
|
|
@@ -644,7 +644,7 @@ class GeographicCoordinates {
|
|
|
644
644
|
return null;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
return asString ?
|
|
647
|
+
return asString ? lat+','+long : [lat, long];
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
static getAllLatLongsFromGeoJsonList(geoJsonList) {
|