summaryrefslogtreecommitdiff
path: root/assets/static/vendor/leaflet-elevation/src/options.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/static/vendor/leaflet-elevation/src/options.js10
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("/") + '/',
};