diff options
| author | Bo Frederiksen <bofrede@bofrede.dk> | 2025-03-20 21:08:59 +0100 |
|---|---|---|
| committer | Bo Frederiksen <bofrede@bofrede.dk> | 2025-03-20 21:19:17 +0100 |
| commit | ebb9e4fc30c0a34c68494da8155871b274ddebbc (patch) | |
| tree | b9141c3bd740bb7fa9f129573b9d45908b1f8120 | |
| parent | d7e57f3de05b8004b1c8021dfab8f41873b3f8a0 (diff) | |
No more dot slash./
| -rw-r--r-- | static/js/drawmap.js | 4 |
1 files 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; |
