Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add -[MGLMapView showAnnotations:animated:] #2044

Closed
jncn opened this issue Aug 12, 2015 · 1 comment
Closed

Add -[MGLMapView showAnnotations:animated:] #2044

jncn opened this issue Aug 12, 2015 · 1 comment
Assignees
Labels
GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS

Comments

@jncn
Copy link

jncn commented Aug 12, 2015

MapKit has a method since iOS 7 which sets the visible region so that the map displays all specified annotations. It would be nice if MGLMapView has a method like this:

- (void)showAnnotations:(NSArray<id<MGLAnnotation>> * _Nonnull)annotations animated:(BOOL)animated
@jncn jncn changed the title Add -[MGLMapView showAnnotations:animated] Add -[MGLMapView showAnnotations:animated:] Aug 12, 2015
@incanus
Copy link
Contributor

incanus commented Aug 12, 2015

I swear we had a ticket on this already, but I can't find it. Maybe not.

We have -setVisibleCoordinateBounds:edgePadding:animated: and friends now, so this would just be a layering on that. Should be a simple patch.

@incanus incanus added GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS labels Aug 12, 2015
@incanus incanus self-assigned this Aug 12, 2015
AndwareSsj pushed a commit to AndwareSsj/mapbox-gl-native that referenced this issue Nov 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

2 participants