[OpenLayers-Users] zIndexing across multiple vector layers

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 17 07:25:46 EST 2009


On Tue, Feb 17, 2009 at 01:18:46PM +0100, Andreas Hocevar wrote:
> > When a feature is selected, I want the externalGraphic used to display the
> > feature to be moved forward, so the user can see the one that is selected.
> > In this cases, playing with the z-index does not help, since the features
> > may belong to different overlays.
> 
> At this point you already know which feature is selected. I see two
> ways to bring it to the top:
>  * determine the layer (feature.layer) and move the layer on top of
> the other (e.g. using map.raiseLayer)

IF you do this with the singleRoot patch, will the ordering of the
features inside the renderRoot change? (I didn't think there was an
event for raiseLayer, so we may need to add one to make this
possible...)

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list