Your way:
mousedown: nothing
mouseup: if there is a feature there, unselect the old one (if any) and select the new one

My way:
mousedown: deselect the old one (if any)
mouseup: if there is a feature there, select it

The way I have it, clicking on a void will unselect the feature.  If you keep selecting the same feature over and over, well, why are you doing that again?  I suppose you could have the control remember the previously selected feature and not re-select it, but that's not the way I coded it.


Eric Lemoine wrote:
On Nov 14, 2007 8:01 PM, Jeff Yutzler <[EMAIL PROTECTED]> wrote:
  
 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.
    

I don't follow you. If you unselect on mousedown and select on mouseup
you can't really unselect your feature, can you? Am I missing the
point?

--
Eric

  
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