[Mapbender-commits] r1906 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Dec 7 10:09:51 EST 2007


Author: verenadiewald
Date: 2007-12-07 10:09:47 -0500 (Fri, 07 Dec 2007)
New Revision: 1906

Modified:
   trunk/mapbender/http/javascripts/map.js
Log:
add STYLES= to function setSingleMapRequest

Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js	2007-12-07 14:53:32 UTC (rev 1905)
+++ trunk/mapbender/http/javascripts/map.js	2007-12-07 15:09:47 UTC (rev 1906)
@@ -858,6 +858,7 @@
 					
 					newMapURL += "LAYERS="+layerNames+"&";
 					var layer = layerNames.split(",");
+					newMapURL += "STYLES=";
 					for(var j=0; j<layer.length; j++){
 						if(j>0){
 							newMapURL  += ",";
@@ -869,7 +870,7 @@
 							newMapURL  += mb_mapObj[i].wms[ii].getCurrentStyleByLayerName(layer[j]);
 						}
 					}
-					
+					newMapURL += "&";
 					newMapURL += "SRS="+mb_mapObj[i].epsg+"&";
 					newMapURL += "BBOX="+mb_mapObj[i].extent+"&";
 					newMapURL += "WIDTH="+mb_mapObj[i].width+"&";



More information about the Mapbender_commits mailing list