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
280 stars 57 forks source link

Get location of clicked location #30

Closed MachariaK closed 3 years ago

MachariaK commented 3 years ago

How can I get the latitude and longitude of a clicked location on the map?

MachariaK commented 3 years ago

Sorted. function clicked(event) { console.log(event.latLng.lat()); console.log(event.latLng.lng()); }