[OpenLayers-Users] zIndexing across multiple vector layers
Andreas Hocevar
ahocevar at opengeo.org
Tue Feb 17 08:00:43 EST 2009
Christopher Schmidt wrote:
> 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...)
It will work. The control listens for the changelayer event, which is
handled in handleChangeLayer.
Regards.
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list