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]]);