---
www/media/osm_map.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/www/media/osm_map.js b/www/media/osm_map.js
index f13a7e7..deb0bf9 100644
--- a/www/media/osm_map.js
+++ b/www/media/osm_map.js
@@ -157,6 +157,8 @@ function mapInit()
new OpenLayers.Pixel(pxbounds.left, pxbounds.top));
rbpixel = map.getLonLatFromPixel(
new OpenLayers.Pixel(pxbounds.right, pxbounds.bottom));
+ if (ltpixel.equals(rbpixel))
+ return;
bounds = new OpenLayers.Bounds();
bounds.extend(ltpixel);
bounds.extend(rbpixel);
--
1.7.0.4