[OpenLayers-Users] zIndexing does not work

Jürgen Dankoweit Juergen.Dankoweit at T-Online.de
Thu Oct 13 03:59:28 EDT 2011


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


More information about the Users mailing list