[Mapbender-commits] r5959 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 15 10:16:01 EDT 2010


Author: christoph
Date: 2010-04-15 10:16:01 -0400 (Thu, 15 Apr 2010)
New Revision: 5959

Modified:
   trunk/mapbender/http/javascripts/wms.js
Log:
bug fix change EPSG: parseFloat(null) === NaN!

Modified: trunk/mapbender/http/javascripts/wms.js
===================================================================
--- trunk/mapbender/http/javascripts/wms.js	2010-04-15 14:14:04 UTC (rev 5958)
+++ trunk/mapbender/http/javascripts/wms.js	2010-04-15 14:16:01 UTC (rev 5959)
@@ -168,7 +168,11 @@
 			var bbox_miny = parseFloat(this.gui_miny[i]);
 			var bbox_maxx = parseFloat(this.gui_maxx[i]);
 			var bbox_maxy = parseFloat(this.gui_maxy[i]);
-			if (!isNaN(bbox_minx) && !isNaN(bbox_miny) && !isNaN(bbox_maxx) && !isNaN(bbox_maxy)) {
+			if (bbox_minx !== null && !isNaN(bbox_minx) &&
+				bbox_miny !== null && !isNaN(bbox_miny) &&
+				bbox_maxx !== null && !isNaN(bbox_maxx) &&
+				bbox_maxy !== null && !isNaN(bbox_maxy)
+			) {
 				return new Extent(bbox_minx, bbox_miny, bbox_maxx, bbox_maxy);
 			}
 		}



More information about the Mapbender_commits mailing list