[OpenLayers-Dev] Re: Re-Ordering Layers

KevinGreen24 kgreen at digitalresultsgroup.com
Tue Feb 22 10:50:24 EST 2011


This method does not work. If you have a SelectFeature control with multiple
layers associated with it, OpenLayers creates a RootContainer vector layer
that is given a z-index of 725, and contains the markup for all layers
associated with it. Any layers that you add to the map that are not part of
the SelectFeature control's layer array seem to be put at a lower z-index
and can never be shown above any layer in the SelectFeature control. I used
setLayerIndex to put my WMS layer at the top of the stack, and it still
shows up below all the layers inside the SelectFeature control. I don't
think that this functionality is doable.
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Re-Ordering-Layers-tp6049995p6052829.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.

More information about the Dev mailing list