[OpenLayers-Users] graphicZIndex of vector features

Joao Campos Duarte joao.c.duarte at co.sapo.pt
Fri Oct 30 12:05:48 EDT 2009


Pierre,

That worked like a charm.

Many thanks!

Regards,
João Duarte
SAPO Mapas - http://mapas.sapo.pt


-----Original Message-----
From: Pierre Giraud [mailto:pierre.giraud at camptocamp.com] 
Sent: sexta-feira, 30 de Outubro de 2009 15:51
To: Christoph Boehme
Cc: Joao Campos Duarte; users at openlayers.org
Subject: Re: [OpenLayers-Users] graphicZIndex of vector features

As I can remember, you need to add a zIndexing in your layer rendererOptions :

var layer = new OpenLayers.Layer.Vector("features", {
    rendererOptions: {
        zIndexing: true
    }
});

I hope this helps.

Regards,
Pierre

On Fri, Oct 30, 2009 at 4:41 PM, Christoph Boehme <christoph at b3e.net> wrote:
> Joao Campos Duarte <joao.c.duarte at co.sapo.pt> wrote:
>> Is the graphicZIndex style property working for everyone? I try to
>> bring some features on top of other by changing this property and
>> re-drawing the feature but with no success.
>>
>> Am I doing something wrong?
>
> I am currently playing with it as well and have not quite understood
> how it works. However, from looking at the OpenLayers source code I got
> the impression it only works when it is set in the style parameter of an
> addFeature call. It does not seem to work when set through a stylemap.
> The reason for this seems to be that the graphicZIndex is not a real css
> property but only controls were in the list of features to draw the new
> feature is added.
>
> I hope this helps,
> Christoph
>
>
>> Thanks,
>>
>> João Duarte
>> SAPO Mapas - http://mapas.sapo.pt
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/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