-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add programmatic annotation selection #47
Conversation
3fe0cef
to
e61d8d7
Compare
annotations-framework-extension/MapboxAnnotationsExtension/Views/MGLAnnotationLayerView.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding this pr. I'm not sure if we should also add a selectedAnnotation
property to the annotationController
because in the mapView
we already "have" that, but thinking that is confusing that an annotationController.selectedAnnotation
will not be equal to mapView.selectedAnnotation
unless the feature is compared. Thoughts?
annotations-framework-extension/MapboxAnnotationsExtension/Views/MGLAnnotationLayerView.h
Outdated
Show resolved
Hide resolved
...ons-framework-extension/MapboxAnnotationsExtensionTests/MGLCircleAnnotationControllerTests.m
Show resolved
Hide resolved
...tions-framework-extension/MapboxAnnotationsExtensionTests/MGLLineAnnotationControllerTests.m
Show resolved
Hide resolved
...ns-framework-extension/MapboxAnnotationsExtensionTests/MGLPolygonAnnotationControllerTests.m
Show resolved
Hide resolved
...ons-framework-extension/MapboxAnnotationsExtensionTests/MGLSymbolAnnotationControllerTests.m
Show resolved
Hide resolved
@fabian-guerra I'm leaning towards providing a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Adds the ability to programmatically select/deselect an
MGLStyleAnnotation
.I also added additional tests around
[MGLStyleAnnotationController addStyleAnnotation:]
.