[OpenLayers-Users] Disable select control only for some
features in a layer
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Mar 9 17:19:10 EST 2010
On Tue, Mar 9, 2010 at 10:54 AM, Olivier THIERRY
<olivier.thierry at gmail.com> wrote:
> Hi,
>
> I have a Vector layer with two kinds of vectors : lines and points.
> I enabled select control for lines, both from user click on the
> feature and user click on a button outside the map.
> For the points I need to enable select control on a user click on a
> button outside the map, but I want to disable select control if the
> user clicks on the feature on the map.
> Since the lines and the points are in the same layer and the select
> control is enabled for the layer, is there a way to tell OpenLayers to
> disable the select control for some features on the layers ?
Hi.
Setting geometryTypes to ["OpenLayers.Geometry.LineString"] in the
select feature options should do the trick.
Cheers,
--
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