svn commit: r698 - trunk/mapbender/http/javascripts/mod_legend.php
astrid_emde at osgeo.org
astrid_emde at osgeo.org
Tue Jul 25 10:26:04 EDT 2006
Author: astrid_emde
Date: 2006-07-25 14:26:04+0000
New Revision: 698
Modified:
trunk/mapbender/http/javascripts/mod_legend.php
Log:
handling load wms with addwms display of the legend was wrong,fixed
no longer check for:
wms_getlegendurl (does the wms suppüorts getlegendurl) because the wmc does not serve this parameter. that was the reason, why wms added by wmc legend wasn't displayed
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=698&p1=trunk/mapbender/http/javascripts/mod_legend.php&p2=trunk/mapbender/http/javascripts/mod_legend.php&r1=697&r2=698
==============================================================================
--- trunk/mapbender/http/javascripts/mod_legend.php (original)
+++ trunk/mapbender/http/javascripts/mod_legend.php 2006-07-25 14:26:04+0000
@@ -120,7 +120,7 @@
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 != ""){
+ //if(parent.mb_mapObj[ind].wms[i].wms_getlegendurl != ""){
layers = parent.mb_checkScale(mod_legend_target,ind,i);
@@ -141,7 +141,29 @@
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>";
+ }
+
for (var k=0; k<l["name"].length; k++){
+ //str_tmp += l["title"][k]; // ------
+
+
if (l["legendurl"][k]!='' && l["legendurl"][k]!=0){
if (tmp_name != l["title"][k]) {
if (showgroupedlayertitle == 'true'){
@@ -193,7 +215,7 @@
}// for
} // if (layers[0...
- } // if (parent.mb_mapObj[ind].wms[i].wms_getlegendurl != "")
+ //} // if (parent.mb_mapObj[ind].wms[i].wms_getlegendurl != "")
if(str_tmp !=''){
if (showwmstitle == 'true'){
More information about the Mapbender_commits
mailing list