@raruto/leaflet-elevation 1.8.8 → 1.8.9

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.
@@ -1793,7 +1793,7 @@
1793
1793
  __TOGEOJSON: 'https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js',
1794
1794
  __LGEOMUTIL: 'https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js',
1795
1795
  __LALMOSTOVER: 'https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js',
1796
- __LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.8.8/libs/leaflet-distance-marker.min.js',
1796
+ __LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.8.9/libs/leaflet-distance-marker.min.js',
1797
1797
 
1798
1798
  /*
1799
1799
  * Add data to the diagram either from GPX or GeoJSON and update the axis domain and data
@@ -2171,7 +2171,7 @@
2171
2171
 
2172
2172
  if ("alt" in point) point.meta.ele = point.alt; // "coordinateProperties" property is generated inside "@tmcw/toGeoJSON"
2173
2173
 
2174
- if (properties.coordinateProperties) {
2174
+ if (properties && properties.coordinateProperties) {
2175
2175
  var props = properties.coordinateProperties;
2176
2176
  if ("times" in props) point.meta.time = new Date(Date.parse(props.times[i]));
2177
2177
  if ("heart" in props) point.meta.hr = parseInt(props.heart[i]); // TODO: ask to "@tmcw/toGeoJSON" for "cadence" and "temperature" implementation