[OpenLayers-Users] Vector features bring-to-front

Pierre Giraud pierre.giraud at camptocamp.com
Thu May 19 11:06:43 EDT 2011


If you want to use graphicZIndex, you also have to set zIndexing to
true in the layer's renderOptions :
rendererOptions: {zIndexing: true}

See http://openlayers.org/dev/examples/ordering.html

Pierre


2011/5/19 Gissur Þórhallsson <gissur at loftmyndir.is>:
> Hi again,
> I've got a bunch of point features that often occupy the exact same space -
> making any but the top-most one inaccessible to the selectFeature control.
> What I'm wondering is whether there is any way to dynamically alter the
> order in which the features are drawn (short of moving features around in
> the OL.Layer.Vector.features array).
> I've been giving graphicZIndex the old college try, but to no  avail.
> Any ideas?
>
> --
> Gissur Þórhallsson
>
> Loftmyndir ehf.
> Laugavegur 13
> IS 101 Reykjavík - Iceland
> sími (tel): (+354) 540 2500
> tölvupóstur (email): gissur at loftmyndir.is
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>



-- 
Pierre GIRAUD
Géomaticien, Analyste

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list