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:
+4
-1
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user