[OpenLayers-Users] Get the object layer on an 'changelayer' events

Arnaud Vandecasteele arnaud.sig at gmail.com
Mon Jun 2 08:11:57 EDT 2008


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


-- 
------------------------------------------------------------------------------
Van De Casteele Arnaud
72 Rue de la colline des camélias 97400 Saint-Denis
0262 30 67 79 - 0692 23 73 17
Site internet : http://cataloguesig.c-webhosting.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080602/9c6f123f/attachment.html


More information about the Users mailing list