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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 18 04:56:28 EST 2011


Author: verenadiewald
Date: 2011-01-18 01:56:28 -0800 (Tue, 18 Jan 2011)
New Revision: 7446

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

Modified: branches/2.6/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.6/http/html/mod_treefolderPlain.php	2011-01-17 19:36:33 UTC (rev 7445)
+++ branches/2.6/http/html/mod_treefolderPlain.php	2011-01-18 09:56:28 UTC (rev 7446)
@@ -401,10 +401,11 @@
 	}
 	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]);
+		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"]);
 			break;
 		}
 	}



More information about the Mapbender_commits mailing list