Pierre,

That worked like a charm.

Many thanks!

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


-----Original Message-----
From: Pierre Giraud [mailto:[email protected]] 
Sent: sexta-feira, 30 de Outubro de 2009 15:51
To: Christoph Boehme
Cc: Joao Campos Duarte; [email protected]
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 <[email protected]> wrote:
> Joao Campos Duarte <[email protected]> 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
> [email protected]
> 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 : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to