@raruto/leaflet-elevation 1.7.2 → 1.7.3

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.
@@ -2108,7 +2108,7 @@
2108
2108
  __TOGEOJSON: 'https://unpkg.com/@tmcw/togeojson@4.3.0/dist/togeojson.umd.js',
2109
2109
  __LGEOMUTIL: 'https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js',
2110
2110
  __LALMOSTOVER: 'https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js',
2111
- __LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.7.2/libs/leaflet-distance-marker.min.js',
2111
+ __LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.7.3/libs/leaflet-distance-marker.min.js',
2112
2112
 
2113
2113
  /*
2114
2114
  * Add data to the diagram either from GPX or GeoJSON and update the axis domain and data
@@ -2116,7 +2116,7 @@
2116
2116
  addData: function addData(d, layer) {
2117
2117
  var _this = this;
2118
2118
 
2119
- if ((typeof layer === "undefined" || layer === null) && d.on) {
2119
+ if (typeof layer === "undefined" && d.on) {
2120
2120
  layer = d;
2121
2121
  }
2122
2122
 
@@ -2579,7 +2579,7 @@
2579
2579
  var _this8 = this;
2580
2580
 
2581
2581
  each(coords, function (point) {
2582
- _this8._addPoint(point.lat, point.lng, point.meta.ele);
2582
+ _this8._addPoint(point.lat, point.lng, typeof point.alt !== "undefined" ? point.alt : point.meta.ele);
2583
2583
 
2584
2584
  _this8._fireEvt("elepoint_added", {
2585
2585
  point: point,