I was not happy with this behavior so I updated the control so that a mousedown deselects the current feature (if any) and a mouseup attempts to select a feature under the mouse, if any.  This seemed to be a more natural approach.

[EMAIL PROTECTED] wrote:
Date: Tue, 13 Nov 2007 19:38:42 +0100
From: "Eric Lemoine" <[EMAIL PROTECTED]>
Subject: Re: [OpenLayers-Users] How do I unselect a feature?
On Nov 13, 2007 6:19 PM, Jeff Dege <[EMAIL PROTECTED]> 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.

  
  
begin:vcard
fn:Jeff Yutzler
n:Yutzler;Jeff
org:IONIC Enterprise, Inc.
adr;dom:Suite 300;;901 N. Pitt St.;Alexandria;VA;22314
email;internet:[EMAIL PROTECTED]
title:Senior Geospatial Systems Engineer
tel;work:(703) 535-5973X17
tel;fax:(703) 535-5975
tel;cell:(703) 981-8753
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to