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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jul 13 04:15:01 EDT 2009


Author: verenadiewald
Date: 2009-07-13 04:15:01 -0400 (Mon, 13 Jul 2009)
New Revision: 4343

Modified:
   branches/2.6/http/javascripts/map_obj.js
Log:
remove LAYERS & STYLES param from request url if vendorspecific is set and wms is a deegree wms

Modified: branches/2.6/http/javascripts/map_obj.js
===================================================================
--- branches/2.6/http/javascripts/map_obj.js	2009-07-10 15:37:39 UTC (rev 4342)
+++ branches/2.6/http/javascripts/map_obj.js	2009-07-13 08:15:01 UTC (rev 4343)
@@ -543,6 +543,10 @@
 			// scope (see mod_addSLD.php) 
 			if (typeof(vendorSpecificString) != "undefined") {
 				url += vendorSpecificString + "&";
+				if (currentWms.wms_title == removeLayerAndStylesAffectedWMSTitle) {
+					url = url.replace(/LAYERS=[^&]*&/, '');
+					url = url.replace(/STYLES=[^&]*&/, '');
+				}
 			}
 		}
 		// add Filter



More information about the Mapbender_commits mailing list