@raruto/leaflet-elevation 1.9.0 → 1.9.1
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.9.
|
|
1796
|
+
__LDISTANCEM: 'https://unpkg.com/@raruto/leaflet-elevation@1.9.1/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
|
|
@@ -3113,19 +3113,20 @@
|
|
|
3113
3113
|
|
|
3114
3114
|
select('.download a', this._summary._container).onclick = function (e) {
|
|
3115
3115
|
e.preventDefault();
|
|
3116
|
+
var event = {
|
|
3117
|
+
downloadLink: _this20.options.downloadLink,
|
|
3118
|
+
confirm: saveFile.bind(_this20, _this20._downloadURL)
|
|
3119
|
+
};
|
|
3116
3120
|
|
|
3117
|
-
if (
|
|
3121
|
+
if (_this20.options.downloadLink == 'modal' && typeof CustomEvent === "function") {
|
|
3118
3122
|
document.dispatchEvent(new CustomEvent("eletrack_download", {
|
|
3119
|
-
detail:
|
|
3123
|
+
detail: event
|
|
3120
3124
|
}));
|
|
3121
|
-
} else if (
|
|
3122
|
-
|
|
3125
|
+
} else if (_this20.options.downloadLink == 'link' || _this20.options.downloadLink === true) {
|
|
3126
|
+
event.confirm();
|
|
3123
3127
|
}
|
|
3124
3128
|
|
|
3125
|
-
_this20._fireEvt('eletrack_download',
|
|
3126
|
-
downloadLink: _this20.options.downloadLink,
|
|
3127
|
-
confirm: saveFile.bind(_this20, _this20._downloadURL)
|
|
3128
|
-
});
|
|
3129
|
+
_this20._fireEvt('eletrack_download', event);
|
|
3129
3130
|
};
|
|
3130
3131
|
}
|
|
3131
3132
|
},
|