svn commit: r714 - trunk/mapbender/http/javascripts/mod_legend.php
astrid_emde at osgeo.org
astrid_emde at osgeo.org
Fri Jul 28 10:05:43 EDT 2006
Author: astrid_emde
Date: 2006-07-28 14:05:43+0000
New Revision: 714
Modified:
trunk/mapbender/http/javascripts/mod_legend.php
Log:
redone changes from yesterday because pos was missing and getchilds didn't work properly
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=714&p1=trunk/mapbender/http/javascripts/mod_legend.php&p2=trunk/mapbender/http/javascripts/mod_legend.php&r1=713&r2=714
==============================================================================
--- trunk/mapbender/http/javascripts/mod_legend.php (original)
+++ trunk/mapbender/http/javascripts/mod_legend.php 2006-07-28 14:05:43+0000
@@ -135,31 +135,9 @@
for(var j=0; j<layer.length; j++){
var l = parent.mb_getchildsbyname(ind,i,layer[j]);
-
+
// handle grouped layers
- if (l) {
- if (showlayertitle == 'true'){
- str_tmp += "<div><span class='titles'>" + titles[j]+ "</span></div>";
- }
-
- if (l["name"].length == 1 && legendurl[j]!=''){
- //str_tmp += legendurl[j];
-
- str_tmp += "<div>";
- if(legendlink == 'true'){
- str_tmp += "<a href='../php/result.php?lingo=deutsch&layer="+layer[j]+"' class='link_metadata' title='Zeigt Liste zum Thema: "+titles[j]+"' target='result'>";
- }
- str_tmp += "<img border=0 src = '";
- str_tmp += legendurl[j];
- str_tmp += "'></img>";
-
-
- if (legendlink == 'true'){
- str_tmp += "</a>";
- }
- str_tmp += "</div>";
- }
-
+ if (l) {
for (var k=0; k<l["name"].length; k++){
//str_tmp += l["title"][k]; // ------
@@ -198,7 +176,7 @@
}
str_tmp += "<img border=0 src = '";
str_tmp += legendurl[j];
- //str_tmp += parent.mb_mapObj[ind].wms[i].wms_getlegendurl + "&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=";
+
str_tmp += "'></img>";
//str_tmp += "legend:"+legendurl[j];
More information about the Mapbender_commits
mailing list