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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 18 05:01:07 EST 2011


Author: verenadiewald
Date: 2011-01-18 02:01:07 -0800 (Tue, 18 Jan 2011)
New Revision: 7447

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
changed function zoomToLayer: no extra mb_calculateExtent needed

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2011-01-18 09:56:28 UTC (rev 7446)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2011-01-18 10:01:07 UTC (rev 7447)
@@ -475,9 +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_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