@watergis/maplibre-gl-terradraw 1.2.0 → 1.2.1

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.
@@ -6260,7 +6260,7 @@ class Ad extends Do {
6260
6260
  const l = s[h], d = s[h + 1], c = Ao(l, d, { units: this.distanceUnit });
6261
6261
  r += c;
6262
6262
  const p = JSON.parse(JSON.stringify(e));
6263
- if (p.id = `${p.id}-${h}`, p.geometry.coordinates = [l, d], p.properties.originalId = e.id, p.properties.distance = parseFloat(c.toFixed(this.distancePrecision)), p.properties.total = parseFloat(r.toFixed(this.distancePrecision)), p.properties.unit = this.getDistanceUnitName(this.distanceUnit), this.measureOptions.computeElevation === !0 && this.measureOptions === void 0) {
6263
+ if (p.id = `${p.id}-${h}`, p.geometry.coordinates = [l, d], p.properties.originalId = e.id, p.properties.distance = parseFloat(c.toFixed(this.distancePrecision)), p.properties.total = parseFloat(r.toFixed(this.distancePrecision)), p.properties.unit = this.getDistanceUnitName(this.distanceUnit), this.measureOptions.computeElevation === !0 && this.measureOptions.terrainSource === void 0) {
6264
6264
  const u = (n = this.map) == null ? void 0 : n.queryTerrainElevation(l);
6265
6265
  u && (p.properties.elevation_start = u);
6266
6266
  const f = (a = this.map) == null ? void 0 : a.queryTerrainElevation(d);