diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-02-27 05:51:08 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-02-27 05:51:08 +0000 |
| commit | ecc0d9a1deb3cdaf272bbd6d87e76efa763e52d6 (patch) | |
| tree | 9d7181d3f87c1c375208782d7326f16b3548c91b /web | |
| parent | fdb6e5c171da5ebaf91d09c84647d95ce4e530ca (diff) | |
fixed default zoom level for map
Diffstat (limited to 'web')
| -rw-r--r-- | web/public/javascripts/map.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> 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("<h3>City Hall (not really)</h3><p>Toronto, ON<br>Information about city hall.</p>"); + +map.setZoom(13); |
