I am trying to change the order of layers i am drawing dynamically. I want to bring the layer i select to be the top layer (i.e. dynamically change the zindex), and each time i select a different layer that should be the top layer.
Does anyone know how to do this? (need an example)