@raruto/leaflet-elevation 1.9.3 → 1.9.4
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/README.md +1 -0
- package/dist/leaflet-elevation.js +7 -5
- package/dist/leaflet-elevation.js.map +1 -1
- package/dist/leaflet-elevation.min.js +1 -1
- package/dist/leaflet-elevation.min.js.map +1 -1
- package/libs/leaflet-distance-marker.js +240 -80
- package/libs/leaflet-distance-marker.min.js +1 -1
- package/package.json +1 -1
- package/src/control.js +2 -2
- package/src/options.js +5 -1
package/README.md
CHANGED
|
@@ -1707,7 +1707,11 @@
|
|
|
1707
1707
|
collapsed: false,
|
|
1708
1708
|
detached: true,
|
|
1709
1709
|
distance: true,
|
|
1710
|
-
distanceMarkers:
|
|
1710
|
+
distanceMarkers: {
|
|
1711
|
+
lazy: true,
|
|
1712
|
+
distance: true,
|
|
1713
|
+
arrow: false
|
|
1714
|
+
},
|
|
1711
1715
|
decimalsX: 2,
|
|
1712
1716
|
decimalsY: 0,
|
|
1713
1717
|
dragging: !L.Browser.mobile,
|
|
@@ -1794,7 +1798,7 @@
|
|
|
1794
1798
|
__TOGEOJSON: 'https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js',
|
|
1795
1799
|
__LGEOMUTIL: 'https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js',
|
|
1796
1800
|
__LALMOSTOVER: 'https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js',
|
|
1797
|
-
__LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.9.
|
|
1801
|
+
__LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.9.4/libs/leaflet-distance-marker.min.js',
|
|
1798
1802
|
|
|
1799
1803
|
/*
|
|
1800
1804
|
* Add data to the diagram either from GPX or GeoJSON and update the axis domain and data
|
|
@@ -1959,9 +1963,7 @@
|
|
|
1959
1963
|
if (this.options.legend) this.options.margins.bottom += 30;
|
|
1960
1964
|
if (this.options.theme) this.options.polylineSegments.className += ' ' + this.options.theme;
|
|
1961
1965
|
if (this.options.wptIcons === true) this.options.wptIcons = Options.wptIcons;
|
|
1962
|
-
if (this.options.distanceMarkers === true) this.options.distanceMarkers =
|
|
1963
|
-
lazy: true
|
|
1964
|
-
};
|
|
1966
|
+
if (this.options.distanceMarkers === true) this.options.distanceMarkers = Options.distanceMarkers;
|
|
1965
1967
|
|
|
1966
1968
|
this._markedSegments.setStyle(this.options.polylineSegments); // Leaflet canvas renderer colors
|
|
1967
1969
|
|