[Mapbender-commits] r7518 - trunk/mapbender/http/html

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 3 03:55:22 EST 2011


Author: verenadiewald
Date: 2011-02-03 00:55:22 -0800 (Thu, 03 Feb 2011)
New Revision: 7518

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
reverted changes in function zoomToLayer (revision 7447)

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2011-02-02 18:28:18 UTC (rev 7517)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2011-02-03 08:55:22 UTC (rev 7518)
@@ -475,10 +475,10 @@
 	var my= mb_mapObj[j].wms[k].objLayer[l].layer_epsg;
 	for (var i=0; i < my.length;i++) {
 		if(my[i]["epsg"]== mb_mapObj[j].epsg){
-			//mb_calculateExtent(mod_treeGDE_map,my[i]["minx"],my[i]["miny"],my[i]["maxx"],my[i]["maxy"]);
-			//var arrayExt =  mb_mapObj[j].extent.toString().split(",");
-			//mb_repaint(mod_treeGDE_map,arrayExt[0],arrayExt[1],arrayExt[2],arrayExt[3]);
-			mb_repaint(mod_treeGDE_map,my[i]["minx"],my[i]["miny"],my[i]["maxx"],my[i]["maxy"]);
+			mb_calculateExtent(mod_treeGDE_map,my[i]["minx"],my[i]["miny"],my[i]["maxx"],my[i]["maxy"]);
+			var arrayExt =  mb_mapObj[j].extent.toString().split(",");
+			mb_repaint(mod_treeGDE_map,arrayExt[0],arrayExt[1],arrayExt[2],arrayExt[3]);
+			//mb_repaint(mod_treeGDE_map,my[i]["minx"],my[i]["miny"],my[i]["maxx"],my[i]["maxy"]);
 			break;
 		}
 	}



More information about the Mapbender_commits mailing list