Skip to content

WMS params cannot be changed at runtime #719

@greeninfo

Description

@greeninfo

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions