mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 22:48:10 +02:00
Restrict zoom to scaleExtent
This commit is contained in:
@@ -365,6 +365,7 @@ iD.Map = function() {
|
||||
var scale = 256 * Math.pow(2, z),
|
||||
center = pxCenter(),
|
||||
l = pointLocation(center);
|
||||
scale = Math.max(1024, Math.min(256 * Math.pow(2, 24), scale));
|
||||
projection.scale(scale);
|
||||
zoom.scale(projection.scale());
|
||||
var t = projection.translate();
|
||||
|
||||
Reference in New Issue
Block a user