<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Suppose I want to write some JS that says :<div><br></div><div><i>alert('You have activated the following layer: layer');</i></div><div><i><br></i></div><div>every time a new non-base-layer is activated. &nbsp;</div><div><br></div><div>1. Is there a property for a layer object that I can watch for, e.g., layer.isOn is TRUE/FALSE, 1/0, etc?</div><div><br></div><div>2. If so, what is that property?</div><div><br></div><div>3. Is there a better way to do this?</div><div><br></div><div>Dheeraj</div></body></html>