@raruto/leaflet-elevation 1.8.7 → 1.8.8
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 -1
- package/dist/leaflet-elevation.js +4 -7
- 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/package.json +1 -1
- package/src/components.js +1 -1
- package/src/control.js +3 -7
- package/libs/extended-ui.js +0 -107
- package/libs/extended-ui.min.js +0 -5
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ _For a working example see one of the following demos:_
|
|
|
23
23
|
|
|
24
24
|
<br/>
|
|
25
25
|
|
|
26
|
+
- [custom chart](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_extended-ui.html)
|
|
26
27
|
- [custom colors](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_custom-theme.html)
|
|
27
28
|
- [custom summary](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_custom-summary.html)
|
|
28
29
|
- [close button](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_close-button.html)
|
|
@@ -48,7 +49,6 @@ _For a working example see one of the following demos:_
|
|
|
48
49
|
- [almost over](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_almost-over.html)
|
|
49
50
|
- [follow marker](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_follow-marker.html)
|
|
50
51
|
- [dynamic runner](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_dynamic-runner.html)
|
|
51
|
-
- [extended ui](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_extended-ui.html)
|
|
52
52
|
|
|
53
53
|
---
|
|
54
54
|
|
|
@@ -675,8 +675,8 @@
|
|
|
675
675
|
var panes = {
|
|
676
676
|
grid: g.append("g").attr("class", "grid"),
|
|
677
677
|
area: g.append('g').attr("class", "area"),
|
|
678
|
-
point: g.append('g').attr("class", "point"),
|
|
679
678
|
axis: g.append('g').attr("class", "axis"),
|
|
679
|
+
point: g.append('g').attr("class", "point"),
|
|
680
680
|
brush: g.append("g").attr("class", "brush"),
|
|
681
681
|
tooltip: g.append("g").attr("class", "tooltip").attr('display', 'none'),
|
|
682
682
|
ruler: g.append('g').attr('class', 'ruler'),
|
|
@@ -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.
|
|
1796
|
+
__LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.8.8/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
|
|
@@ -3019,15 +3019,12 @@
|
|
|
3019
3019
|
_toggleChartHandler: function _toggleChartHandler(e) {
|
|
3020
3020
|
var _this19 = this;
|
|
3021
3021
|
|
|
3022
|
-
var
|
|
3023
|
-
name = e.name,
|
|
3022
|
+
var name = e.name,
|
|
3024
3023
|
enabled = e.enabled;
|
|
3025
3024
|
this._chartEnabled = this._chart._hasActiveLayers(); // toggle layer visibility on empty chart
|
|
3026
3025
|
|
|
3027
3026
|
this._layers.eachLayer(function (layer) {
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
toggleClass(node, _this19.options.polyline.className + ' ' + _this19.options.theme, _this19._chartEnabled);
|
|
3027
|
+
return toggleClass(layer.getElement && layer.getElement(), _this19.options.polyline.className + ' ' + _this19.options.theme, _this19._chartEnabled);
|
|
3031
3028
|
}); // toggle option value (eg. altitude = { 'disabled' || 'disabled' })
|
|
3032
3029
|
|
|
3033
3030
|
|