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" <[email protected]>
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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to