<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&#39;t need to investigate this further.</p>
<p>Andreas. </p>
<div class="gmail_quote">On Oct 13, 2011 9:59 AM, &quot;Jürgen Dankoweit&quot; &lt;<a href="mailto:Juergen.Dankoweit@t-online.de">Juergen.Dankoweit@t-online.de</a>&gt; 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>
&gt; You have to configure your vector layer with the {rendererOptions:<br>
&gt; {zIndexing: true}} option to make this work. Note that this setting will<br>
&gt; make vector rendering significantly slower, so the advice to use<br>
&gt; separate layers is a good one.<br>
&gt;<br>
&gt; Andreas.<br>
&gt;<br>
<br>
Thanks for your answers. I have tried with<br>
<br>
vectorLayer_Stadt = new OpenLayers.Layer.Vector(&quot;Stadt&quot;, {<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: &#39;#000000&#39;, 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>