-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
Once a WMS layer is constructed, no public method is available to change the WMS params.
The following patch adds the new methods setWmsParam and redraw()
setWmsParam: function (name, value, redraw) {
this.wmsParams[name] = value;
if (redraw) this.redraw();
},
redraw: function () {
this._reset(true);
this._update();
},
For some use cases, this is absolutely vital: merging multiple layers into one WMS request, adding vendor params or CQL.