inocan-group / vue3-google-map

A set of composable components for easy use of Google Maps in your Vue 3 projects.
https://vue3-google-map.com
MIT License
272 stars 54 forks source link

Access the latLng property of the google.maps.MapMouseEvent interface #105

Closed smissaertj closed 1 year ago

smissaertj commented 1 year ago

When I click on the map, I want to capture the underlying coordinates to set a Marker at that position later on. It's not clear to me how can I access the latLng property of the google.maps.MapMouseEvent interface?

https://developers.google.com/maps/documentation/javascript/reference/map#MapMouseEvent

Example here: https://developers.google.com/maps/documentation/javascript/examples/event-click-latlng

HusamElbashir commented 1 year ago

Hi

Please refer to https://github.com/inocan-group/vue3-google-map/issues/91#issuecomment-1179765783