new restrictedMinZoom property. r=bartvde (closes #3024)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11058 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-01-24 21:43:35 +00:00
parent 2f7a3e818a
commit a1c80ffb7e
4 changed files with 84 additions and 5 deletions
+4 -1
View File
@@ -556,7 +556,7 @@
function test_Layer_getZoomForResolution(t) {
t.plan(12);
t.plan(13);
var layer = new OpenLayers.Layer('Test Layer');
layer.map = {};
@@ -584,6 +584,9 @@
"(fractionalZoom) doesn't return zoom below zero");
t.eq(layer.getZoomForResolution(1).toPrecision(6), (layer.resolutions.length - 1).toPrecision(6),
"(fractionalZoom) doesn't return zoom above highest index");
layer.restrictedMinZoom = 1;
t.eq(layer.getZoomForResolution(200), 1, "zoom all the way out, but we have a restrictedMinZoom of 1");
}