[OpenLayers-Users] How do I unselect a feature?
Jeff Dege
jdege at korterra.com
Thu Nov 15 14:14:05 EST 2007
> -----Original Message-----
> From: Eric Lemoine [mailto:eric.c2c at gmail.com]
> Sent: Tuesday, November 13, 2007 12:39 PM
> To: Jeff Dege
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] How do I unselect a feature?
>
> On Nov 13, 2007 6:19 PM, Jeff Dege <jdege at korterra.com> wrote:
> > I have a vector layer displayed, with a number of features visible.
> >
> > I have a select control active, so when I click on a feature, it
becomes
> > selected.
> >
> > If I click on another feature, the new feature becomes selected, and
the
> > feature that was selected becomes unselected.
> >
> > How do I unselect a feature without selecting a new feature, and
without
> > inactivating the select control?
>
> Try clicking again on the selected feature.
Clicking again on the selected feature only appears to work on the
polygon and line feature types. Clicking on a selected point has no
effect.
This can be demonstrated by trying it in examples/modify-feature.html.
More information about the Users
mailing list