mapbox / mapbox-annotation-extension

Framework extensions that can be used with the Mapbox Maps SDK for iOS.
ISC License
11 stars 19 forks source link

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

Open captainbarbosa opened 4 years ago

captainbarbosa commented 4 years ago

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).