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

Get onMapClicked event data #23

Open
kelvenclsouza opened this issue Aug 22, 2022 · 2 comments
Open

Get onMapClicked event data #23

kelvenclsouza opened this issue Aug 22, 2022 · 2 comments

Comments

@kelvenclsouza
Copy link

kelvenclsouza commented Aug 22, 2022

Please, how can I get onMapClicked event data to dynamically change the position of the marker according to the user's click on the screen over the map?

@Caipe97
Copy link

Caipe97 commented Nov 28, 2022

You can use the onMessageReceived prop inside the LeafletView instance to capture events. From there on you can add your own code to handle each event as you please.

@loloide
Copy link

loloide commented Feb 17, 2023

like this
onMessageReceived={() => { //code }}

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

3 participants