Commit dff0df7a authored by Baptiste Jonglez's avatar Baptiste Jonglez

map: Increase maximum amount of zoom

parent 09b9f9b6
......@@ -1245,7 +1245,7 @@ function load_map(){
// create the tile layer with correct attribution
var osmUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});
var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib, maxZoom: 19});
map.addLayer(osm);
map.addLayer( markerClusters );
map.addLayer(pointsOfInterest);
......
......@@ -108,7 +108,7 @@ style="padding:0px;height:calc(100vh - 50px)"
// create the tile layer with correct attribution
var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});
var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib, maxZoom: 19});
// start the map on the point
map.setView(new L.LatLng({{ located_point_lat }}, {{ located_point_lon }}),13);
......
......@@ -190,7 +190,7 @@
// create the tile layer with correct attribution
var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});
var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib, maxZoom: 19});
// start the map in Grenoble
map.setView(new L.LatLng(45.1842, 5.7218),13);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment