mapbox / mapbox/mapbox-annotation-extension
Provide an option to decide if annotations should be deselected when moving the map
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 11
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Similar to https://github.com/mapbox/mapbox-gl-native/pull/8022, we should give developers the option to deselect annotations when panning and zooming on the map if they are in a selected state.
The solution to this will likely involve adding a new deselectsAutomatically property to MGLAnnotationController that checks if this option is true and then called the appropriate delegate methods accordingly (such as in https://github.com/mapbox/mapbox-annotation-extension/blob/master/MapboxAnnotationExtension/Views/MGLAnnotationLayerView.m#L48).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading MGLAnnotationController and the selection handling in MapboxAnnotationExtension/Views/MGLAnnotationLayerView.m, then compare the behavior described in mapbox-gl-native/pull/8022. Done means developers can configure whether selected annotations are deselected during map panning and zooming, with the appropriate delegate methods called when enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100