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

Cannot get event from @click in <GoogleMap> #70

Closed RaskaTheFurry closed 2 years ago

RaskaTheFurry commented 2 years ago

Hello, The event @click does fire on click, but when I try to get the event as attribute, it shows me undefined. @click="foo(e)" and foo(e) is just a simple console log of the event, but I should get MapMouseEvent as it stands in Google Map api, if I understand. I want to get latLng of position my cursor is at.

Can you please help me ?

HusamElbashir commented 2 years ago

Appears to be working fine @RaskaTheFurry : https://stackblitz.com/edit/vitejs-vite-4tdpur?file=src%2Fcomponents%2FHelloWorld.vue&terminal=dev

Can you share a reproduction?

RaskaTheFurry commented 2 years ago

Im sorry, im dumb, it was an error on my part.

Thanks for your help

HusamElbashir commented 2 years ago

No worries. Glad you got it sorted.