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.
This commit is contained in:
Tim Schaub
2013-02-14 14:24:14 -07:00
parent d32ab41292
commit 30c82bad45

View File

@@ -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");