Skip to content
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HusamElbashir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #91 on March 28, 2024 23:42.