mapbox / mapbox-annotation-extension

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

Add annotation interaction support for tap events. #16

Closed fabian-guerra closed 5 years ago

fabian-guerra commented 5 years ago

Added an UITapGestureRecognizer to hangle tap events. The current implementation reorganized the mapView recognizers, adding the newly created gesture to the array just befor the main mapView’s singleTapGestureRecognizer. The reason behind the reorg was due to an issue when selecting annotations. It was requiring two taps to select a new annotation when one was already selected.