Ticket #1628 (closed feature: fixed)
removeLayer may break feature selection
| Reported by: | elemoine | Owned by: | ahocevar |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.7 Release |
| Component: | Handler.Feature | Version: | SVN |
| Keywords: | Cc: | ||
| State: | Complete |
Description
Removing a layer may prevent feature selection from working.
Example scenario
- add a base layer
- add a vector layer
- add overlay 1
- add overlay 2
- add a select feature control (here the vector layer's z-index is set to a high value so that feature selection work even though some overlays were added to the map after the vector layer)
- remove overlay 2
After the removal of overlay 2, every layer's z-index is reset (based on the layer idx). Thus, feature selection no longer works because the vector layer has been placed under overlay 1.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

