[Mapbender-commits] r4233 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 09:22:14 EDT 2009


Author: astrid_emde
Date: 2009-06-25 09:22:13 -0400 (Thu, 25 Jun 2009)
New Revision: 4233

Modified:
   branches/2.6/http/javascripts/mod_legend.php
Log:
http://trac.osgeo.org/mapbender/ticket/469

When the default STYLE is used (STYLE=,,,,), Mapbender now takes the first style from the database

Modified: branches/2.6/http/javascripts/mod_legend.php
===================================================================
--- branches/2.6/http/javascripts/mod_legend.php	2009-06-25 13:11:25 UTC (rev 4232)
+++ branches/2.6/http/javascripts/mod_legend.php	2009-06-25 13:22:13 UTC (rev 4233)
@@ -129,7 +129,7 @@
 					var layerStyle = parent.mb_mapObj[ind].wms[i].getCurrentStyleByLayerName(layerNames[j]);
 					var legendUrl = false;
 					if(layerStyle == false){
-						legendUrl = parent.mb_mapObj[ind].wms[i].getLegendUrlByGuiLayerStyle(layerNames[j],"default");	
+						legendUrl = parent.mb_mapObj[ind].wms[i].getLegendUrlByGuiLayerStyle(layerNames[j],"");	
 					}
 					else{
 						legendUrl = parent.mb_mapObj[ind].wms[i].getLegendUrlByGuiLayerStyle(layerNames[j],layerStyle);



More information about the Mapbender_commits mailing list