From ebb9e4fc30c0a34c68494da8155871b274ddebbc Mon Sep 17 00:00:00 2001 From: Bo Frederiksen Date: Thu, 20 Mar 2025 21:08:59 +0100 Subject: No more dot slash./ --- static/js/drawmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/drawmap.js b/static/js/drawmap.js index fac403b..9f340ca 100644 --- a/static/js/drawmap.js +++ b/static/js/drawmap.js @@ -5,13 +5,13 @@ const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { }).addTo(map); var myIcon = L.icon({ - iconUrl: './static/icons/pin.svg', + iconUrl: 'static/icons/pin.svg', iconSize: [32, 32], iconAnchor: [16, 32], popupAnchor: [0, -32] }); -fetch('./static/js/data.json') +fetch('static/js/data.json') .then(response => response.json()) .then(data => { const markersData = data; -- cgit v1.3.1