<p>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.</p>
<p>But now that you use separate layers already, I guess you won't need to investigate this further.</p>
<p>Andreas. </p>
<div class="gmail_quote">On Oct 13, 2011 9:59 AM, "Jürgen Dankoweit" <<a href="mailto:Juergen.Dankoweit@t-online.de">Juergen.Dankoweit@t-online.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Andreas, hello Carsten<br>
<br>
Am 12.10.2011 22:15, schrieb Andreas Hocevar:<br>
> You have to configure your vector layer with the {rendererOptions:<br>
> {zIndexing: true}} option to make this work. Note that this setting will<br>
> make vector rendering significantly slower, so the advice to use<br>
> separate layers is a good one.<br>
><br>
> Andreas.<br>
><br>
<br>
Thanks for your answers. I have tried with<br>
<br>
vectorLayer_Stadt = new OpenLayers.Layer.Vector("Stadt", {<br>
styleMap: styleMap_Stadt,<br>
renderers: renderer,<br>
rendererOptions: {zIndexing: true},<br>
displayInLayerSwitcher: false<br>
});<br>
<br>
and then<br>
<br>
pointFeature_Stadt = new OpenLayers.Feature.Vector(point);<br>
pointFeature_Stadt.attributes =<br>
{text: stadtname, fcolor: '#000000', zIndex: z_Index};<br>
<br>
It does not work, too.<br>
<br>
So I will solve the problem with two layers.<br>
<br>
Thanks for your answers<br>
<br>
Juergen<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div>