[Mapbender-commits] r3109 - in branches/noframes: http/javascripts lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 3 09:22:45 EDT 2008


Author: christoph
Date: 2008-10-03 09:22:45 -0400 (Fri, 03 Oct 2008)
New Revision: 3109

Modified:
   branches/noframes/http/javascripts/mod_zoomFull.php
   branches/noframes/lib/core.js
Log:
removed obsolete code


Modified: branches/noframes/http/javascripts/mod_zoomFull.php
===================================================================
--- branches/noframes/http/javascripts/mod_zoomFull.php	2008-10-03 13:17:48 UTC (rev 3108)
+++ branches/noframes/http/javascripts/mod_zoomFull.php	2008-10-03 13:22:45 UTC (rev 3109)
@@ -9,22 +9,10 @@
    mod_zoomFull_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";
 
 function mod_zoomFull(){
-    var ind         = this.getMapObjIndexByName("<?php  echo $e_target[0];  ?>");		
-		var arrayThemen = new Array();
-		var arrayThemen = mb_mapObj[ind].wms[0].objLayer[0].layer_name;
-		this.Layer0     = arrayThemen;
-		//alert(mb_mapObj[ind].width + " - " + mb_mapObj[ind].height);
-		this.width      = mb_mapObj[ind].width;
-		this.height     = mb_mapObj[ind].height;
-      this.epsg       = wms[0].gui_wms_epsg;
-		//mb_mapObj[ind].epsg = "EPSG:31493";
-    //alert(Layer0);
-		var arrayExt = new Array();		
-		var frameName = "<?php  echo $e_target[0];  ?>"
-		var exts = setExtent(width,height,epsg);
-		arrayExt = exts.split(",");
-		
-		mb_repaint(frameName,arrayExt[0],arrayExt[1],arrayExt[2],arrayExt[3]);
+	var frameName = "<?php  echo $e_target[0];  ?>"
+    var ind = this.getMapObjIndexByName(frameName);
+	
+	mb_mapObj[ind].zoomFull();
 }
 
 function mod_zoomFull_init(obj){

Modified: branches/noframes/lib/core.js
===================================================================
--- branches/noframes/lib/core.js	2008-10-03 13:17:48 UTC (rev 3108)
+++ branches/noframes/lib/core.js	2008-10-03 13:22:45 UTC (rev 3109)
@@ -28,11 +28,6 @@
 var eventBeforeMapRequest = new MapbenderEvent();
 
 /**
- * Triggered before the scale is calculated.
- */
-var eventBeforeGetScale = new MapbenderEvent();
-
-/**
  * Triggered before a feature info is requested.
  */
 var eventBeforeFeatureInfo = new MapbenderEvent();
@@ -128,15 +123,6 @@
  * deprecated wrapped function
  * @deprecated
  */
-function mb_registerGetScalePreFunctions(stringFunction){
-//	mb_GetScalePreFunctions[mb_GetScalePreFunctions.length] = stringFunction;
-	eventBeforeGetScale.register(stringFunction);
-}
-
-/**
- * deprecated wrapped function
- * @deprecated
- */
 function mb_registerloadWmsSubFunctions(stringFunction){
 //	mb_loadWmsSubFunctions[mb_loadWmsSubFunctions.length] = stringFunction;
 	eventAfterLoadWMS.register(stringFunction);



More information about the Mapbender_commits mailing list