
Hi All, I'm a long time programmer, a first time Mod writer and I'm new to Javascript. One of my issues as a GM is that I constantly think I'm on a certain layer when I'm actually on another. I know the layer toolbar icon changes to represent the current layer, but I would like something a little more obvious. Is there a way to determine from within a script what the current layer is? Can I be notified when the layer changes? I've looked at the API documentation for events, objects, etc, but I haven't been able to find anything. Once I can determine the current layer, I need to figure out how to display it for the GM. I was thinking of using a handout that can be iconified and placed anywhere on the map, and then changing the name from within the script to indicate the current layer. After some experimentation, I can change the name of the handout, but it doesn't update until I edit the handout. Any ideas? Can I draw something on the GM layer relative to the window (as opposed to the map) so that it is always in view? I know there are some browser extensions that can do this for me, but I would rather write a script myself. Cheers -- John