inocan-group/vue3-google-map

Access to the google.maps.Map object?

Closed this issue · 1 comments

This is more a question than an issue really, but I'm re-implementing an older solution as a vue application and the old version used something called "Overlapping Spiderfier" to have overlapping markers stand out from each other on click (looks and works great)..

However, the initialization of the spiderfier needs the map object;

const oms = new OverlappingMarkerSpiderfier(map, options);

The question now is; can I access the map object somehow in my template? by ref or otherwise?

Thank you in advance!

Nevermind, I found it in the docs;

watch(() => mapRef.value?.ready, (ready) => { if (!ready) return console.log(mapRef.value?.map); });