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

How to use pixelOffset option? #95

Closed web-programmer-here closed 2 years ago

web-programmer-here commented 2 years ago

using the js for Google map, pixelOffset for info window is set like this:

myinfo = new google.maps.InfoWindow({ 
      content: "my content",
      pixelOffset: new google.maps.Size(0, 60)
    });
myinfo.open(map, marker);

is it possible to use this option in InfoWindow component?

web-programmer-here commented 2 years ago

had to do if (mapRef.value?.ready) { and it is now good