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

JuKiM rifins at gmail.com
Mon Jun 21 11:32:06 EDT 2010


Hi,

I'm adding a layer to the map

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..
I've tried to do map.raiseLayer(lyrTest, -5); in order to move the layer..
And it is displayed on the top of the layer switcher.. But the polygons are
still over the markers..

How can I change that?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100621/bf7494b9/attachment.html


More information about the Users mailing list