From c2044fcc858c63e0e77061d80f1ee81c0c66edde Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 19 Feb 2016 15:09:29 +0100 Subject: Tidy intialization. --- templates/map.mdwn | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates') 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 = '© OpenStreetMap-bidragydere, CC-BY-SA'; var OSMLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: attribOSM } ); var Box = L.latLngBounds( [[],[]] ); - -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); -- cgit v1.2.3