mapbox / mapbox/mapbox-annotation-extension

Provide an option to decide if annotations should be deselected when moving the map

Open
#62 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.