@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.
package/package.json
CHANGED
package/src/control.js
CHANGED
|
@@ -17,7 +17,7 @@ export const Elevation = L.Control.Elevation = L.Control.extend({
|
|
|
17
17
|
__TOGEOJSON: 'https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js',
|
|
18
18
|
__LGEOMUTIL: 'https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js',
|
|
19
19
|
__LALMOSTOVER: 'https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js',
|
|
20
|
-
__LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.8.
|
|
20
|
+
__LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.8.9/libs/leaflet-distance-marker.min.js',
|
|
21
21
|
|
|
22
22
|
/*
|
|
23
23
|
* Add data to the diagram either from GPX or GeoJSON and update the axis domain and data
|
|
@@ -347,7 +347,7 @@ export const Elevation = L.Control.Elevation = L.Control.extend({
|
|
|
347
347
|
if ("alt" in point) point.meta.ele = point.alt;
|
|
348
348
|
|
|
349
349
|
// "coordinateProperties" property is generated inside "@tmcw/toGeoJSON"
|
|
350
|
-
if (properties.coordinateProperties) {
|
|
350
|
+
if (properties && properties.coordinateProperties) {
|
|
351
351
|
let props = properties.coordinateProperties;
|
|
352
352
|
if("times" in props) point.meta.time = new Date(Date.parse(props.times[i]));
|
|
353
353
|
if("heart" in props) point.meta.hr = parseInt(props.heart[i]);
|