[Mapbender-commits] r3857 - branches/2.6/http/javascripts

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


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

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

Modified: branches/2.6/http/javascripts/mod_box1.js
===================================================================
--- branches/2.6/http/javascripts/mod_box1.js	2009-04-07 15:49:31 UTC (rev 3856)
+++ branches/2.6/http/javascripts/mod_box1.js	2009-04-07 15:50:12 UTC (rev 3857)
@@ -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