[Mapbender-commits] r7448 - branches/2.7/http/html

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


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

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

Modified: branches/2.7/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.7/http/html/mod_treefolderPlain.php	2011-01-18 10:01:07 UTC (rev 7447)
+++ branches/2.7/http/html/mod_treefolderPlain.php	2011-01-18 10:01:45 UTC (rev 7448)
@@ -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