From ecc0d9a1deb3cdaf272bbd6d87e76efa763e52d6 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Tue, 26 Feb 2019 22:51:08 -0700 Subject: fixed default zoom level for map --- web/public/javascripts/map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/public/javascripts') diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js index d2afeb4..5e5a303 100644 --- a/web/public/javascripts/map.js +++ b/web/public/javascripts/map.js @@ -8,7 +8,7 @@ L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}{r} attribution: 'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors', subdomains: 'abcd', minZoom: 0, - maxZoom: 13, + maxZoom: 18, ext: 'png' }).addTo(map); @@ -17,3 +17,5 @@ var myDataPoint = L.marker([43.6529, -79.3849]).addTo(map); // Bind popup to Data Point object myDataPoint.bindPopup("

City Hall (not really)

Toronto, ON
Information about city hall.

"); + +map.setZoom(13); -- cgit v1.2.3