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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 8 08:56:59 EST 2007


Author: christoph
Date: 2007-03-08 08:56:58 -0500 (Thu, 08 Mar 2007)
New Revision: 1204

Modified:
   trunk/mapbender/http/html/mod_treefolder2.php
Log:
zoomToLayer didn't walk through all EPSGs; wrong abort condition in for-loop. Thanks to Armin Retterath

Modified: trunk/mapbender/http/html/mod_treefolder2.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder2.php	2007-03-07 10:11:25 UTC (rev 1203)
+++ trunk/mapbender/http/html/mod_treefolder2.php	2007-03-08 13:56:58 UTC (rev 1204)
@@ -281,7 +281,7 @@
 		l=selectedLayer;
 	}
 	var my=parent.mb_mapObj[j].wms[k].objLayer[l].layer_epsg;
-	for(var i=0;i<my.length-1;i++){
+	for (var i=0;i<my.length;i++){
 		if(my[i]["epsg"]==parent.mb_mapObj[j].epsg){
 			parent.mb_calculateExtent(mod_treeGDE_map,my[i]["minx"],my[i]["miny"],my[i]["maxx"],my[i]["maxy"]);
 			var arrayExt = parent.mb_mapObj[j].extent.split(",");



More information about the Mapbender_commits mailing list