@osimatic/helpers-js 1.4.16 → 1.4.18

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.
Files changed (2) hide show
  1. package/location.js +3 -3
  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 ? str.join(',') : [firstLat, firstLon];
463
+ return asString ? firstLat+','+firstLon : [firstLat, firstLon];
464
464
  }
465
465
 
466
466
  static convertToGeoJson(latlngs) {
@@ -625,7 +625,7 @@ class GeographicCoordinates {
625
625
  }
626
626
 
627
627
  static formatPoint(geoJsonPoint, fractionDigit=6) {
628
- const [long, lat] = GeographicCoordinates.parseFromGeoJson(geoJsonPoint);
628
+ const [lat, long] = GeographicCoordinates.parseFromGeoJson(geoJsonPoint);
629
629
  if (typeof long == 'undefined' || typeof lat == 'undefined') {
630
630
  return '';
631
631
  }
@@ -644,7 +644,7 @@ class GeographicCoordinates {
644
644
  return null;
645
645
  }
646
646
 
647
- return asString ? str.join(',') : [lat, long];
647
+ return asString ? lat+','+long : [lat, long];
648
648
  }
649
649
 
650
650
  static getAllLatLongsFromGeoJsonList(geoJsonList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.4.16",
3
+ "version": "1.4.18",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"