Closed aungnyithit-21 closed 2 years ago
Hi @aungmyaethit
You can listen to a click
event on the map. Example:
https://stackblitz.com/edit/vitejs-vite-4tdpur?file=src%2Fcomponents%2FHelloWorld.vue&terminal=dev
You get a MapMouseEvent
in your event handler that contains latLng
which has lat
and lng
getter functions:
https://developers.google.com/maps/documentation/javascript/reference/map#MapMouseEvent
Hi @HusamIbrahim
Thank you so much for answer, It really support me.
Hello Sir , I want to get the latitude and longitude when I click on the map in state of vue . How can I do that?