Ticket #2204 (closed bug: fixed)
cannot unselect on clickout when selecting by drawing a box
| Reported by: | elemoine | Owned by: | elemoine |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | Control.SelectFeature | Version: | 2.8 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
This is an issue with the SelectFeature. When selecting features by drawing a box we cannot unselect them with clickout. The issue can be easily reproduced with the select feature example (http://openlayers.org/dev/examples/select-feature.html).
Here's what's going on: when selecting features by drawing a box the feature handler does not participate in the selection so it never triggers the clickout callback. I don't see any other way than faking the feature handler, as done in the attached patch.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

