[OpenLayers-Users] layer.vector is always on top

Manuel Reimer Manuel.Spam at nurfuerspam.de
Mon Jun 21 15:42:56 EDT 2010


JuKiM wrote:
> lyrTest = new OpenLayers.Layer.Vector('Test');
> map.addLayer(lyrTest);
>
> But it is always displayed on top.. I use that layer to draw lines and
> polygons.. And when the polygons are drawn, I can't click the markers that
> are under them..

Seems like this depends on the order of the "addLayer" calls. You have 
to "addLayer" our markers layer as last layer. Add all your polygon 
layers before it.

For me this seems to work. The Vector layer is displayed and I'm still 
able to open my popups.

Yours

Manuel




More information about the Users mailing list