On Nov 14, 2007 9:01 PM, Jeff Yutzler <[EMAIL PROTECTED]> wrote: > > Your way: > mousedown: nothing > mouseup: if there is a feature there, unselect the old one (if any) and > select the new one
I don't know what OL version you're using but in 2.5 and SVN features are selected/unselected on click, not on mousedown or mouseup. > > 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. By clicking on a void do you mean clicking outside of any 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. Show me the code :-) I'm curious to exactly understand what you're doing... -- Eric _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users