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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 7 11:50:44 EDT 2009


Author: christoph
Date: 2009-04-07 11:50:44 -0400 (Tue, 07 Apr 2009)
New Revision: 3858

Modified:
   trunk/mapbender/http/javascripts/mod_box1.js
Log:
http://trac.osgeo.org/mapbender/ticket/145

Modified: trunk/mapbender/http/javascripts/mod_box1.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_box1.js	2009-04-07 15:50:12 UTC (rev 3857)
+++ trunk/mapbender/http/javascripts/mod_box1.js	2009-04-07 15:50:44 UTC (rev 3858)
@@ -175,11 +175,13 @@
 }
 
 function mod_box_setValidClipping(coords){
-	if(coords.length > 2){
-		mb_calculateExtent(mb_zF,coords[0],coords[1],coords[2],coords[3]);
-		setMapRequest(mb_zF);
+	if (typeof(coords) !== "undefined") {
+		if(coords.length > 2){
+			mb_calculateExtent(mb_zF,coords[0],coords[1],coords[2],coords[3]);
+			setMapRequest(mb_zF);
+		}
+		else{
+			zoom(mb_zF,true,1.0,coords[0], coords[1]);
+		}
 	}
-	else{
-		zoom(mb_zF,true,1.0,coords[0], coords[1]);
-	}
 }



More information about the Mapbender_commits mailing list