From b2a1fd7bd1a5cb2e1e35ea10c9bf199913bb5b17 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Mon, 26 Apr 2021 15:51:37 +0200 Subject: [PATCH] fix position of markers --- static/js/map.js | 1 - 1 file changed, 1 deletion(-) diff --git a/static/js/map.js b/static/js/map.js index 4da9c88..dfea31a 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -165,7 +165,6 @@ $(document).ready(function () { var tilelayer = new L.tileLayer(url); map.attributionControl.setPrefix('Source: Swiss Federal Office of Topography') map.addLayer(tilelayer); - map.setView(L.latLng(lat, lon), 10); marker = L.marker([lat, lon], { icon: woBischIcon, zIndexOffset: 1000 }).addTo(map); $('#reportrange span').html(moment(s_start).locale('de').format('D. MMM YYYY') + ' - ' + moment(s_stop).locale('de').format('D. MMM YYYY'));