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

floatingActionButton to center the marker on the map? #2

Open
ChoupidoudouX opened this issue Jun 5, 2021 · 2 comments
Open

floatingActionButton to center the marker on the map? #2

ChoupidoudouX opened this issue Jun 5, 2021 · 2 comments

Comments

@ChoupidoudouX
Copy link

Hello. Is it possible to create a button to center the marker in view of the map?
I manage to send it the coordinates for the center when loading my map but not to interact with it with a floatingActionButton ...
In any case, thank you for this very useful plugin !!

@ibrierley
Copy link
Owner

Not sure I entirely follow. Can't you use the onDragUpdate callback, update some variable from that, and then make your button make the mapController move to that location ?

@ChoupidoudouX
Copy link
Author

I am a junior developer, I don't necessarily have the right reflexes. It's an interesting reflection, I will work on this approach.
Thank you so much.

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