Commit 310f8ae6 authored by Adrien Pavie's avatar Adrien Pavie
Browse files

Tile zoom in layers side content restricted to zoom 18 or lower

parent a2cc42c1
......@@ -148,7 +148,7 @@ Layers.prototype.set = function(map, baselayers, mapstyles, currentBase, current
* Change the coordinates
*/
Layers.prototype.setCoordinates = function(lat, lng, zoom) {
this._coords = { lat: lat, lng: lng, zoom: zoom };
this._coords = { lat: lat, lng: lng, zoom: Math.min(zoom, 18) };
};
......
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