dgeoutils 2.4.7 → 2.4.8

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.
@@ -61,7 +61,7 @@ var DPoint = (function () {
61
61
  if (format === void 0) { format = 'xyz'; }
62
62
  var _a = c, lat = _a.lat, lon = _a.lon, _b = _a.lng, lng = _b === void 0 ? lon : _b, alt = _a.alt;
63
63
  if (lat && lng) {
64
- return new DPoint(lat, lng, alt !== null && alt !== void 0 ? alt : 0);
64
+ return new DPoint(lng, lat, alt !== null && alt !== void 0 ? alt : 0);
65
65
  }
66
66
  var t = c;
67
67
  if (c.type === 'Point') {
@@ -28,7 +28,7 @@ export class DPoint {
28
28
  static parse(c, format = 'xyz') {
29
29
  const { lat, lon, lng = lon, alt } = c;
30
30
  if (lat && lng) {
31
- return new DPoint(lat, lng, alt !== null && alt !== void 0 ? alt : 0);
31
+ return new DPoint(lng, lat, alt !== null && alt !== void 0 ? alt : 0);
32
32
  }
33
33
  let t = c;
34
34
  if (c.type === 'Point') {
@@ -58,7 +58,7 @@ var DPoint = (function () {
58
58
  if (format === void 0) { format = 'xyz'; }
59
59
  var _a = c, lat = _a.lat, lon = _a.lon, _b = _a.lng, lng = _b === void 0 ? lon : _b, alt = _a.alt;
60
60
  if (lat && lng) {
61
- return new DPoint(lat, lng, alt !== null && alt !== void 0 ? alt : 0);
61
+ return new DPoint(lng, lat, alt !== null && alt !== void 0 ? alt : 0);
62
62
  }
63
63
  var t = c;
64
64
  if (c.type === 'Point') {