[OpenLayers-Dev] API function and event for changing WMS LAYERS param?

bartvde at osgis.nl bartvde at osgis.nl
Tue Jul 14 01:19:07 EDT 2009


Hi list,

this came up on the geoext list [1], and Eric and I are interested how
other OL devs feel about this.

Currently, when the LAYERS param is changed for an OpenLayers.Layer.WMS
layer, there is no way for an external component (like the GeoExt legend
panel), te know that something has changed and that they need to update
themselves.

So what I was proposing is an API function updateLayersParam or something
similar, which will do the updating, and trigger a changelayer event with
property e.g. layersparam.

Thoughts/comments more than welcome, also if people see other possible
solutions. Also on the naming ofcourse.

If there is support for this, then I'll gladly create a ticket and a patch
with tests.

Best regards.
Bart

[1] http://www.geoext.org/pipermail/dev/2009-July/000249.html




More information about the Dev mailing list