[Mapbender-commits] r3986 - branches/google_dev/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 3 04:45:45 EDT 2009


Author: christoph
Date: 2009-06-03 04:45:44 -0400 (Wed, 03 Jun 2009)
New Revision: 3986

Modified:
   branches/google_dev/http/javascripts/mod_box1.js
Log:


Modified: branches/google_dev/http/javascripts/mod_box1.js
===================================================================
--- branches/google_dev/http/javascripts/mod_box1.js	2009-06-03 07:57:29 UTC (rev 3985)
+++ branches/google_dev/http/javascripts/mod_box1.js	2009-06-03 08:45:44 UTC (rev 3986)
@@ -176,9 +176,13 @@
 
 function mod_box_setValidClipping(coords){
 	if (typeof(coords) !== "undefined") {
+		var map = getMapObjByName(mb_zF);
+		
 		if(coords.length > 2){
-			mb_calculateExtent(mb_zF,coords[0],coords[1],coords[2],coords[3]);
-			setMapRequest(mb_zF);
+			map.calculateExtent(new Extent(coords[0],coords[1],coords[2],coords[3]));
+			if (typeof map.google === "undefined") {
+				setMapRequest(mb_zF);
+			}
 		}
 		else{
 			zoom(mb_zF,true,1.0,coords[0], coords[1]);



More information about the Mapbender_commits mailing list