[OpenLayers-Users] Get the object layer on an 'changelayer'
events
bartvde at osgis.nl
bartvde at osgis.nl
Mon Jun 2 08:16:32 EDT 2008
Something like:
this.map.events.register("changelayer", this, function(evt) {
var layer = evt.layer;
});
Best regards,
Bart
On Mon, 2 Jun 2008 12:11:57 +0000, "Arnaud Vandecasteele"
<arnaud.sig at gmail.com> wrote:
> Hello,
>
> I use the events 'changelayer' on my map to know if one of my layers have
> been activate or unactivate.
> I would like to be able to get the layer object when a user activate or
> unactivate it.
>
> Tought the OL AI specify :
>
> *changelayer* triggered after a layer name change, order change, or
> visibility change (due to resolution thresholds). Listeners will receive
> an
> event object with *layer* and *property* properties. The *layer*
property
> will be a reference to the changed layer. The *property* property will
be
> a
> key to the changed property (name, visibility, or order).
>
> How i can manage my application to get the layer that have been changed.
>
> Thanks for your help.
>
> Arnaud
>
>
>
More information about the Users
mailing list