From c20ab1c1907e2788aba8114df082ad1cc489208e Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Wed, 21 Apr 2021 15:26:37 +0200 Subject: [PATCH] fix marker --- static/js/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/map.js b/static/js/map.js index dd83f86..4da9c88 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -12,7 +12,7 @@ var allmarkers = L.layerGroup(); var woBischIcon = L.icon({ iconUrl: '/static/images/marker.png', iconSize: [64, 64], - iconAnchor: [32, 64], + iconAnchor: [32, 32], popupAnchor: [0, -64] }); var datapoints; @@ -20,7 +20,7 @@ var woBischIcon2 = L.icon({ iconUrl: '/static/images/marker-all.png', iconSize: [64, 64], iconAnchor: [32, 32], - popupAnchor: [0, 0] + popupAnchor: [0, -64] }); var bounds; var boundsSwitzerland = new L.LatLngBounds([[47.826186, 10.511814], [45.797054, 5.925007]]);