[Mapbender-commits] r5040 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Nov 25 08:12:00 EST 2009
Author: christoph
Date: 2009-11-25 08:11:59 -0500 (Wed, 25 Nov 2009)
New Revision: 5040
Modified:
trunk/mapbender/http/javascripts/wms.js
Log:
Modified: trunk/mapbender/http/javascripts/wms.js
===================================================================
--- trunk/mapbender/http/javascripts/wms.js 2009-11-25 13:11:35 UTC (rev 5039)
+++ trunk/mapbender/http/javascripts/wms.js 2009-11-25 13:11:59 UTC (rev 5040)
@@ -257,6 +257,7 @@
}
rq += "&";
// add vendor-specific
+ var currentWms = this;
for (var v = 0; v < mb_vendorSpecific.length; v++) {
var functionName = 'setFeatureInfoRequest';
var currentWms_wms_title = this.wms_title;
@@ -267,10 +268,15 @@
// scope (see mod_addSLD.php)
if (typeof(vendorSpecificString) != "undefined") {
rq += vendorSpecificString + "&";
- if (this.wms_title == removeLayerAndStylesAffectedWMSTitle) {
- rq = url.replace(/LAYERS=[^&]*&/, '');
- rq = url.replace(/STYLES=[^&]*&/, '');
+ try {
+ if (this.wms_title == removeLayerAndStylesAffectedWMSTitle) {
+ rq = url.replace(/LAYERS=[^&]*&/, '');
+ rq = url.replace(/STYLES=[^&]*&/, '');
+ }
}
+ catch (exc) {
+ new Mb_warning(exc.message);
+ }
}
}
return rq;
More information about the Mapbender_commits
mailing list