[OpenLayers-Users] ? about layer property

Dheeraj Chand dheeraj at dheerajchand.com
Thu May 10 12:28:59 PDT 2012


Suppose I want to write some JS that says :

alert('You have activated the following layer: layer');

every time a new non-base-layer is activated.  

1. Is there a property for a layer object that I can watch for, e.g., layer.isOn is TRUE/FALSE, 1/0, etc?

2. If so, what is that property?

3. Is there a better way to do this?

Dheeraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120510/4a47f437/attachment.html


More information about the Users mailing list