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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 11 02:51:04 PDT 2014


Author: armin11
Date: 2014-09-11 02:51:04 -0700 (Thu, 11 Sep 2014)
New Revision: 9071

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
Bugfix for showing download options in grouped layer too

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2014-09-11 09:12:44 UTC (rev 9070)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2014-09-11 09:51:04 UTC (rev 9071)
@@ -822,7 +822,7 @@
 								controls='';
 								if(switchwms=='true')controls='<INPUT type="checkbox" title="' + msgObj.tooltipHandleWms + '"  onclick="handleSelectedWMS(\''+parentNode+'|wms_'+ mb_mapObj[i].wms[ii].wms_id+'\');" />';
 								if(wmsbuttons == 'true'&&metadatalink == 'true')controls+='<a href="'+'javascript:openwindow(\''+ defaultMetadataUrl + '&id='+temp.layer_uid+'\');'+'"><img alt="'+msgObj.tooltipMetadata+'" title="'+msgObj.tooltipMetadata+'" src="'+imagedir+'/info.png" /></a>';
-								/*if(wmsbuttons == 'true'&&datalink == 'true' && mb_mapObj[i].wms[ii].objLayer[j].layer_dataurl_href != '')controls+='<a href="'+'javascript:openwindow(\''+ mb_mapObj[i].wms[ii].objLayer[j].layer_dataurl_href +'"><img alt="'+msgObj.tooltipDownload+'" title="'+msgObj.tooltipDownload+'" src="'+imagedir+'/gnome/document-save.png" /></a>';*/
+								/*if(datalink == 'true' && mb_mapObj[i].wms[ii].objLayer[iii].layer_dataurl != '')controls+='<a href="'+'javascript:openwindow(\''+ mb_mapObj[i].wms[ii].objLayer[iii].layer_dataurl +'"><img alt="'+msgObj.tooltipDownload+'" title="'+msgObj.tooltipDownload+'" src="'+imagedir+'/gnome/document-save.png" /></a>';*/
 								addNode(parentNode,["wms_"+ mb_mapObj[i].wms[ii].wms_id,[temp.layer_currentTitle,((metadatalink=='true'&&wmsbuttons != 'true')?('javascript:openwindow(\"'+ defaultMetadataUrl + '&id='+temp.layer_uid+'\");'):"javascript:select("+i+","+ii+","+iii+");"),,,temp.layer_currentTitle,eval(c_menu),controls,[i,ii,iii]]],false,false,reverse=="true");
 								parentObj = parentNode+"|wms_"+ mb_mapObj[i].wms[ii].wms_id;
 							}
@@ -884,8 +884,8 @@
 									if(wmsbuttons == 'true'&&metadatalink == 'true'){
 										controls.push('<a href="javascript:openwindow(\''+ defaultMetadataUrl + '&id='+temp.layer_uid+'\');"><img alt="'+msgObj.tooltipMetadata+'" title="'+msgObj.tooltipMetadata+'" src="'+imagedir+'/info.png" /></a>');
 									}
-									if(datalink == 'true' && mb_mapObj[i].wms[ii].objLayer[j].layer_dataurl != ''){
-										controls.push('<a href="'+'javascript:openwindow(\''+ mb_mapObj[i].wms[ii].objLayer[j].layer_dataurl +'\');"><img width="18" height="18" alt="'+msgObj.tooltipDownload+'" title="'+msgObj.tooltipDownload+'" src="'+imagedir+'/../gnome/document-save.png" /></a>');	
+									if(datalink == 'true' && mb_mapObj[i].wms[ii].objLayer[iii].layer_dataurl != ''){
+										controls.push('<a href="'+'javascript:openwindow(\''+ mb_mapObj[i].wms[ii].objLayer[iii].layer_dataurl +'\');"><img width="18" height="18" alt="'+msgObj.tooltipDownload+'" title="'+msgObj.tooltipDownload+'" src="'+imagedir+'/../gnome/document-save.png" /></a>');	
 									}
 									var groupedImageStyle ='';
 									if (temp.has_childs == true){



More information about the Mapbender_commits mailing list