On Tue, Mar 9, 2010 at 10:54 AM, Olivier THIERRY
<[email protected]> 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 : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to