diff options
| author | Dennis Fink | 2026-11-03 23:18:23 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-03 23:18:23 +0100 |
| commit | ebe123a6d40bf17ab2a35f331fb08c8c0fc76a3a (patch) | |
| tree | 441d3a817736e9db25d5c14aa3938c0392166160 /assets/static/vendor/leaflet-elevation/src/options.js | |
| parent | 7f4de25eb8abca76a619bc70bb0fce7e8be36561 (diff) | |
| download | dennisfink.me-ebe123a6d40bf17ab2a35f331fb08c8c0fc76a3a.tar.gz dennisfink.me-ebe123a6d40bf17ab2a35f331fb08c8c0fc76a3a.zip | |
Update vendored Leaflet Elevation and map dependencies
Diffstat (limited to 'assets/static/vendor/leaflet-elevation/src/options.js')
| -rw-r--r-- | assets/static/vendor/leaflet-elevation/src/options.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/static/vendor/leaflet-elevation/src/options.js b/assets/static/vendor/leaflet-elevation/src/options.js index 5923163..1efcf29 100644 --- a/assets/static/vendor/leaflet-elevation/src/options.js +++ b/assets/static/vendor/leaflet-elevation/src/options.js @@ -4,7 +4,7 @@ export var Options = { autofitBounds: true, autohide: false, autohideMarker: true, - almostover: true, + almostOver: true, altitude: true, closeBtn: true, collapsed: false, @@ -21,7 +21,7 @@ export var Options = { handlers: ["Distance", "Time", "Altitude", "Slope", "Speed", "Acceleration"], hotline: 'elevation', marker: 'elevation-line', - markerIcon: L.divIcon({ + markerIcon: new L.DivIcon({ className: 'elevation-position-marker', html: '<i class="elevation-position-icon"></i>', iconSize: [32, 32], @@ -54,7 +54,7 @@ export var Options = { trkEnd: { className: 'end-marker', radius: 6, weight: 2, color: '#fff', fillColor: '#ff0606', fillOpacity: 1, interactive: false }, waypoints: true, wptIcons: { - '': L.divIcon({ + '': new L.DivIcon({ className: 'elevation-waypoint-marker', html: '<i class="elevation-waypoint-icon default"></i>', iconSize: [30, 30], @@ -67,7 +67,7 @@ export var Options = { yAttr: "z", yLabel: "m", zFollow: false, - zooming: !L.Browser.Mobile, + zooming: !L.Browser.mobile, // Quite uncommon and undocumented options margins: { top: 30, right: 30, bottom: 30, left: 40 }, @@ -84,5 +84,5 @@ export var Options = { yAxisMin: undefined, // Prevent CORS issues for relative locations (dynamic import) - srcFolder: ((document.currentScript && document.currentScript.src) || (import.meta && import.meta.url)).split("/").slice(0,-1).join("/") + '/', + srcFolder: ((document.currentScript && document.currentScript.src) || (import.meta && import.meta.url) || document.baseURI).split("/").slice(0,-1).join("/") + '/', }; |
