[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Disallow bounding boxes with a null height and
From: |
Gaël Utard |
Subject: |
[Maposmatic-dev] [PATCH] Disallow bounding boxes with a null height and width. |
Date: |
Wed, 4 Aug 2010 22:46:28 +0200 |
---
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
- [Maposmatic-dev] [PATCH] Disallow bounding boxes with a null height and width.,
Gaël Utard <=