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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Mar 16 05:16:44 EDT 2009


Author: christoph
Date: 2009-03-16 05:16:44 -0400 (Mon, 16 Mar 2009)
New Revision: 3730

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
zoom is now using the method of the map object and no longer the global function

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2009-03-16 07:40:32 UTC (rev 3729)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2009-03-16 09:16:44 UTC (rev 3730)
@@ -20,14 +20,13 @@
 require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
 include '../include/dyn_js.php';
 ?>
-function openwindow(Adresse) {
-Fenster1 = window.open(Adresse, "Informationen", "width=500,height=500,left=100,top=100,scrollbars=yes,resizable=no");
-Fenster1.focus();
+function openwindow (Adresse) {
+	Fenster1 = window.open(Adresse, "Informationen", "width=500,height=500,left=100,top=100,scrollbars=yes,resizable=no");
+	Fenster1.focus();
 }
 <?php
-
-   echo "mod_treeGDE_map = '".$e_target[0]."';";   
-session_write_close();
+	echo "mod_treeGDE_map = '".$e_target[0]."';";   
+	session_write_close();
 ?>
 var msgObj = {};
 msgObj.tooltipHandleWms = '<?php echo _mb("(De)activate this service");?>';
@@ -427,7 +426,7 @@
 		return;
 	}
 	treeState = getState();
-	 zoom( mb_mapObj[j].frameName, true, 1.0);
+	 mb_mapObj[j].zoom(true, 1.0);
 	 mb_execloadWmsSubFunctions();
 	//find layer and select
 	for(k=0;k< mb_mapObj[j].wms.length;k++){
@@ -459,7 +458,7 @@
 		return;
 	}
 	treeState = getState();
-	 zoom( mb_mapObj[j].frameName, true, 1.0);
+	 mb_mapObj[j].zoom(true, 1.0);
 	 mb_execloadWmsSubFunctions();	
 	//find layer and select
 	for(k=0;k< mb_mapObj[j].wms.length;k++){
@@ -499,7 +498,7 @@
 	}
 	if(confirm('Are you sure you want to remove "'+ mb_mapObj[j].wms[k].objLayer[l].layer_title+'"?')){
   		 mb_mapObjremoveWMS(j,k); 
-		 zoom( mb_mapObj[j].frameName, true, 1.0);
+		 mb_mapObj[j].zoom(true, 1.0);
 		 mb_execloadWmsSubFunctions();	
 	}
 }



More information about the Mapbender_commits mailing list