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

How to display a small window after clicking on annotation? #11

Open
sandorbogyo opened this issue May 17, 2022 · 7 comments
Open

How to display a small window after clicking on annotation? #11

sandorbogyo opened this issue May 17, 2022 · 7 comments

Comments

@sandorbogyo
Copy link

Looks like a great project, thanks for your work! Is it possible to click on a view in ViewMapAnnotation to bring up a small window with more information? I tried putting a Button in it, or just a TapGesture and clicking on it would display a different view, but it didn't work.

iOS 15 - SwiftUI - Xcode 13.4 - Swift Package Manager

@pauljohanneskraft
Copy link
Owner

Thank you very much for letting me know - I'm already working on this on the hit-testing branch.

@sandorbogyo
Copy link
Author

Sounds great!

@pauljohanneskraft
Copy link
Owner

It already partially worked, but there are still a few hiccups - e.g. it is only working the first time and once you then pan the map around, it stops working entirely - not sure why that is.... and it would need to work on macOS as well, which is not the case at the moment.

So still quite some work ahead - hoping to get this done as soon as possible, but not sure how much time I can spend on this in the near future... If you have found a solution or are willing to help with this, please let me know.

@observableobject
Copy link

I would also be interested in this.

@sandorbogyo
Copy link
Author

I successfully solved it, I will try to upload my solution as soon as I will have time for that.

@mcgows
Copy link

mcgows commented Nov 4, 2022

I successfully solved it, I will try to upload my solution as soon as I will have time for that.

@sandorbogyo, any update on this solution?

@bryan1anderson
Copy link

Hmmm. This is definitely a stopper for me use case, unfortunately. I'll try and see if I can help out. I'm in the middle of deciding to just build it all out in classic MapKit APIs or if I can get away with using this library.

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

5 participants