Skip to content
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

Merged
merged 2 commits into from
Aug 14, 2019

Conversation

captainbarbosa
Copy link
Contributor

Adds the ability to programmatically select/deselect an MGLStyleAnnotation.

I also added additional tests around [MGLStyleAnnotationController addStyleAnnotation:].

@captainbarbosa captainbarbosa added the enhancement New feature or request label Aug 12, 2019
@captainbarbosa captainbarbosa self-assigned this Aug 12, 2019
Copy link
Contributor

@fabian-guerra fabian-guerra left a 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?

@captainbarbosa
Copy link
Contributor Author

@fabian-guerra I'm leaning towards providing a selectedAnnotations property on MGLAnnotationController, but per our in-person chat earlier I think we should leave this for another release.

Copy link
Contributor

@fabian-guerra fabian-guerra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@captainbarbosa captainbarbosa merged commit c7c0b41 into master Aug 14, 2019
@captainbarbosa captainbarbosa mentioned this pull request Aug 14, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants