[Mapbender-commits] r7520 - branches/2.6/http/html

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 3 03:57:06 EST 2011


Author: verenadiewald
Date: 2011-02-03 00:57:06 -0800 (Thu, 03 Feb 2011)
New Revision: 7520

Modified:
   branches/2.6/http/html/mod_treefolderPlain.php
Log:
reverted changes in function zoomToLayer

Modified: branches/2.6/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.6/http/html/mod_treefolderPlain.php	2011-02-03 08:56:15 UTC (rev 7519)
+++ branches/2.6/http/html/mod_treefolderPlain.php	2011-02-03 08:57:06 UTC (rev 7520)
@@ -402,10 +402,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.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.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