[OpenLayers-Users] zIndexing does not work

Andreas Hocevar ahocevar at opengeo.org
Thu Oct 13 04:53:54 EDT 2011


Oh sorry, you had the zIndexing option set already. The one thing that
really looks wrong in your code is your z_Index calculation. It looks rather
static to me.

But now that you use separate layers already, I guess you won't need to
investigate this further.

Andreas.
On Oct 13, 2011 9:59 AM, "Jürgen Dankoweit" <Juergen.Dankoweit at t-online.de>
wrote:

> Hello Andreas, hello Carsten
>
> Am 12.10.2011 22:15, schrieb Andreas Hocevar:
> > You have to configure your vector layer with the {rendererOptions:
> > {zIndexing: true}} option to make this work. Note that this setting will
> > make vector rendering significantly slower, so the advice to use
> > separate layers is a good one.
> >
> > Andreas.
> >
>
> Thanks for your answers. I have tried with
>
> vectorLayer_Stadt = new OpenLayers.Layer.Vector("Stadt", {
>  styleMap: styleMap_Stadt,
>  renderers: renderer,
>  rendererOptions: {zIndexing: true},
>  displayInLayerSwitcher: false
> });
>
> and then
>
> pointFeature_Stadt = new OpenLayers.Feature.Vector(point);
> pointFeature_Stadt.attributes =
>  {text: stadtname, fcolor: '#000000', zIndex: z_Index};
>
> It does not work, too.
>
> So I will solve the problem with two layers.
>
> Thanks for your answers
>
> Juergen
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111013/63ab4c9b/attachment.html


More information about the Users mailing list