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

Map Annotation selection #17

Closed
vx8 opened this issue Jul 7, 2022 · 1 comment
Closed

Map Annotation selection #17

vx8 opened this issue Jul 7, 2022 · 1 comment

Comments

@vx8
Copy link

vx8 commented Jul 7, 2022

Hello @pauljohanneskraft , loving your library!

Is there a way to support annotation selection? I already tried with navigationLinks and tapGestures with no luck

Thanks

@pauljohanneskraft
Copy link
Owner

Hey - thank you 😊

Unfortunately, there is no such feature at the moment and I'm still not quite sure how it could be reasonably implemented.

What would you think about a solution where you can put in a Binding<Set<AnnotationItem.ID>> or Binding<Array<AnnotationItem>> to select and deselect annotations? When these annotations are deselected by the user, they are removed from the array/set again. More information about this will be tracked in #4.

Or are you talking about being able to tap on them and then performing some action? You could theoretically do that with a button, but for some reason MKAnnotationView apparently does not forward user interaction to its children. I'm currently working on this (as described in #11) and have a version that sometimes accepts button taps, but unfortunately, it stops working after some time.

Since in both cases this would be a duplicate issue, I will close this one. If your question does not fit into either of these issues, let me know and I will reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants