Ticket #1096 (new feature)
add property isOnTop to Layer
|Reported by:||elemoine||Owned by:||elemoine|
Add property isOnTop to OpenLayers.Layer. Layers with the isOnTop property set are always above (z-index) layers that don't have this property set. That property has no effect for baselayers.
This is useful for example when you want to add a vector layer once for good at init time, and be assured that this vector layer will always be above other overlays that you may add and remove afterwards as the application goes.
I have tried different paths to implement this. The best and simplest code I've come up with up to now involves adding a new Z_BASE_INDEX category, namely OverLayTop. Do you see any problem with adding this to the Z_BASE_INDEX object?
Patch to come, once the unit tests are complete.