capacitor-community / google-maps

Capacitor Plugin using native Google Maps SDK for Android and iOS.
https://capacitor-community.github.io/google-maps/
MIT License
152 stars 64 forks source link

[Question] didTapMarker Callback #190

Closed mujie-dm closed 2 years ago

mujie-dm commented 2 years ago

Hi,

Please help how to use proper way a didTapMarker and callback and trigger my own function. Here is my short code:

  CapacitorGoogleMaps.didTapMarker({
    options: {
      mapId: document.getElementById("map").getAttribute("data-maps-id"),
      preventDefault: true 
    },
    callback: {  //HOW?
    }
  });

Thanks before.

Regards, Mujie

mujie-dm commented 2 years ago

Ah my bad, I don't see an example from https://github.com/capacitor-community/google-maps-examples/blob/main/vue3/src/components/HomeView.vue

Case close.

Regards, Mujie