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

Handle annotation selection #4

Open
pauljohanneskraft opened this issue Apr 25, 2022 · 4 comments
Open

Handle annotation selection #4

pauljohanneskraft opened this issue Apr 25, 2022 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pauljohanneskraft
Copy link
Owner

What should happen if an annotation is selected, should there be an option to handle these cases?

@pauljohanneskraft pauljohanneskraft added enhancement New feature or request good first issue Good for newcomers labels Apr 25, 2022
@pauljohanneskraft
Copy link
Owner Author

This will likely need to be implemented in the map itself as to be able to have access to the annotation item type. Will have a look at how deselection might be possible - not sure yet.

@chrisperfer
Copy link

I came here looking similarly to see if dragging of annotations was handled. Thanks.

@pauljohanneskraft
Copy link
Owner Author

@chrisperfer It is not handled at the moment - I'm just curious - do you have a UIKit-MapKit example of how you would do that? Then I could adapt it for SwiftUI. I would assume that you put some form of DragGestureRecognizer on the annotationView and then manipulate its coordinate according to the zoomScale and region?

You can already dynamically change the annotation's coordinate though - you can find out more in #15

@BucekJiri
Copy link

Just opened a PR with how I handled the annotation selection in my fork.

And thank you for the library of course! 💪

rmnblm pushed a commit to rmnblm/Map that referenced this issue Nov 3, 2022
…onMisplacement

Annotation and Clusterannotation views display properties. Improves t…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants