svn commit: r576 - trunk/mapbender/http/javascripts/mod_legend.php

astrid_emde at osgeo.org astrid_emde at osgeo.org
Tue Jun 20 05:25:33 EDT 2006


Author: astrid_emde
Date: 2006-06-20 09:25:33+0000
New Revision: 576

Modified:
   trunk/mapbender/http/javascripts/mod_legend.php

Log:
did some cleaning

Modified: trunk/mapbender/http/javascripts/mod_legend.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_legend.php?view=diff&rev=576&p1=trunk/mapbender/http/javascripts/mod_legend.php&p2=trunk/mapbender/http/javascripts/mod_legend.php&r1=575&r2=576
==============================================================================
--- trunk/mapbender/http/javascripts/mod_legend.php	(original)
+++ trunk/mapbender/http/javascripts/mod_legend.php	2006-06-20 09:25:33+0000
@@ -1,6 +1,6 @@
 <?php
-# $Id: mod_legend.php 73 2006-04-18 10:45:53Z
-# http://www.mapbender.org/index.php/mod_legend.php
+# $Id$
+# http://www.mapbender.org/index.php/Legend
 # Copyright (C) 2005 CCGIS / terrestris 
 #
 # This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@
 if($cnt > 1){
 	echo "alert('legend: ID not unique!');";
 }
-#target position, with and height...
+
 $sql2 = "SELECT e_left,e_top,e_width,e_height FROM gui_element WHERE e_id = '".$e_target."' AND fkey_gui_id = $1";
 $v = array($gui_id);
 $t = array('s');
@@ -118,13 +118,10 @@
 	var str = "";
 	var str_tmp = "";
 
-	//str += "<a href='' title='Legende anzeigen' target='_blank'>Legende</a>";
-
 	for(var i=0; i<parent.mb_mapObj[ind].wms.length; i++){
    		var img_format = parent.mb_mapObj[ind].wms[i].gui_wms_mapformat;
 		if(parent.mb_mapObj[ind].wms[i].wms_getlegendurl != ""){
 		
-			//header
 			layers = parent.mb_checkScale(mod_legend_target,ind,i);
 			
 			if(layers[0] != ""){   				    
@@ -133,15 +130,12 @@
 				var legendurl = layers[3].split(",");
 				var layerparent= layers[4].split(",");
 				var tmp_name = "";
-
-        		
-        		
+	
         		
 				for(var j=0; j<layer.length; j++){
 				
 		    		var l = parent.mb_getchildsbyname(ind,i,layer[j]);
     	    
-		    		//str_tmp += "test:"+ layer[j]+"/"+titles[j]+"<br>";
 		    		// handle grouped layers
 				 	if (l) {
 				 		if (showlayertitle == 'true'){				




More information about the Mapbender_commits mailing list