summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/map.mdwn4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/map.mdwn b/templates/map.mdwn
index 74c0884e..803d1ace 100644
--- a/templates/map.mdwn
+++ b/templates/map.mdwn
@@ -6,10 +6,8 @@
var attribOSM = '&copy; <a href="https://openstreetmap.org">OpenStreetMap</a>-bidragydere, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
var OSMLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: attribOSM } );
var Box = L.latLngBounds( [[<TMPL_VAR bounds-nw>],[<TMPL_VAR bounds-se>]] );
-
-map = L.map('content', { layers: [OSMLayer] });
+var map = L.map('content', { layers: [OSMLayer] }).fitBounds(Box);
map.attributionControl.setPrefix(false);
-map.fitBounds(Box);
L.control.scale({ imperial: false }).addTo(map);