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

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Mon Jun 21 16:41:34 EDT 2010


On Jun 21, 2010, at 3:42 PM, ext Manuel Reimer wrote:

> 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.

Vector layers are special. THey always go on top so you can select from
them. There are hacks to avoid this, but none of them are part of the 
core.

-- chris

> 
> For me this seems to work. The Vector layer is displayed and I'm still 
> able to open my popups.
> 
> Yours
> 
> Manuel
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

Regards,
-- 
Christopher Schmidt
Nokia




More information about the Users mailing list