vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

Add an API to access the `google` object

Open aentwist opened this issue 2 years ago • 3 comments

  • [ ] Add feature
  • [ ] Add documentation

If this is already possible then it should be added to the documentation. I did not see it after examining the source code.

See a reference Vue 2 implementation from gmap-vue.

aentwist avatar Feb 07 '22 19:02 aentwist

It is already possible to access the google object. Here is an example of accessing google in your component:

https://stackblitz.com/edit/vue-google-maps-marker-zzrfjb?file=src/components/ComponentWithMap.vue

Although this solution works, but I agree, that there should be an api for it. I will add it to the todo list.

fawmi avatar Feb 10 '22 11:02 fawmi

+1 For this!

danimalweb avatar Apr 01 '22 18:04 danimalweb

Was able to get this working in Vue 3 using Options API after seeing some Composition API examples: https://github.com/fawmi/vue-google-maps/discussions/113#discussioncomment-2517078

tylerclark avatar Apr 06 '22 16:04 tylerclark