[OpenLayers-Users] layer.vector is always on top
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Jun 22 00:49:57 EDT 2010
On Monday, June 21, 2010, <christopher.schmidt at nokia.com> wrote:
>
> 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.
Right, as long as you have an active control that uses a Feature
handler (e.g. SelectFeature control).
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list