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"
<[EMAIL PROTECTED]> 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
>
>
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users