mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
323 stars 8 forks source link

Method "selectAnnotation: animated:" doesn't work. #679

Closed sw1mming closed 8 years ago

sw1mming commented 8 years ago

I'm using pods to load Mapbox: pod 'Mapbox-iOS-SDK', '~> 3.0'

And when I'm trying call method:

it doesn't work.

Annotation is on screen and I pass actual annotation object to this method.

1ec5 commented 8 years ago

This is the repository for the former Mapbox iOS SDK that displays raster map tiles. The “Mapbox-iOS-SDK” pod installs a newer SDK that displays vector map tiles; please report bugs in that SDK in the mapbox/mapbox-gl-native repository.

Regarding the issue you’re seeing, you need to implement -mapView:annotationCanShowCallout: in your MGLMapViewDelegate to return YES in order for a callout to appear when the annotation is selected. The annotation also needs to have a title.