From 30c82bad45e8b53c0efd4e16f04672aa7a1a651f Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 14 Feb 2013 14:24:14 -0700 Subject: [PATCH] For pixel bounds, the bottom is a larger value than the top This still doesn't address the broken ZoomBox test (see #800), it fails in the same way with or without this change. --- tests/Control/ZoomBox.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Control/ZoomBox.html b/tests/Control/ZoomBox.html index 0ff3e6010c..7763bcff2c 100644 --- a/tests/Control/ZoomBox.html +++ b/tests/Control/ZoomBox.html @@ -38,7 +38,8 @@ t.eq(map.getZoom(), 2, "not zoomed with zoomOnClick set to false"); map.zoomToMaxExtent(); - control.zoomBox(new OpenLayers.Bounds(128, 64, 256, 128)); + // pixel bounds bottom > top + control.zoomBox(new OpenLayers.Bounds(128, 128, 256, 64)); t.eq(map.getCenter().toShortString(), "-45, 22.5", "centered to box center"); t.eq(map.getZoom(), 3, "zoomed to box extent");