[OpenLayers-Users] FEatures orders
darrepac
pascal.darre at laposte.net
Thu Jan 22 05:44:39 EST 2009
So my question was, which value I put for GOLD_Z_INDEX ?
thanks
Andreas Hocevar-2 wrote:
>
> darrepac wrote:
>>
>> darrepac wrote:
>>
>>>
>>>
>>>
>>>> You decide. Not the absolute z-index, only the order is relevant
>>>> (greater than / less than comparison). This z-index also has nothing
>>>> to do with the CSS z-index.
>>>>
>>>>
>>>>
>>> Ok but I just want to know example value to not put stupid value which
>>> will make the features below the map for example...So for example if you
>>> tell me that features z-index value should be around 500, I will play
>>> around this number...but may-be it is 20, 2000....
>>>
>>> thanks
>>>
>>>
>>
>> Do you mean we can stay at the relative level and not putting absolute
>> value
>> may-be....if yes, how?
>>
>
> You do not use CSS z-index here. All you have to do is set the
> graphicZIndex property of your symbolizer, as the ordering.html example
> shows:
>
> var layer = new OpenLayers.Layer.Vector(
> "Y-Order",
> {
> styleMap: new OpenLayers.StyleMap({
> externalGraphic: "../img/marker-gold.png",
> pointRadius: 10,
> graphicZIndex: GOLD_Z_INDEX
> }),
> isBaseLayer: true,
> rendererOptions: {yOrdering: true}
> }
> );
>
> You will not want the yOrdering renderer option, but instead:
>
> rendererOptions: {zIndexing: true}
>
>
> Regards,
> Andreas.
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/FEatures-orders-tp2167927p2197078.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list