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
285 stars 56 forks source link

InfoWindow show by default #143

Closed darrenpaul closed 1 year ago

darrenpaul commented 1 year ago

Hello, is it possible to show an InfoWindow by default while its nested between a Marker? Without having to use a ref.

<Marker
  v-for="(marker, index) in infoWindows"
  :key="`marker${index}`"
  :options="marker"
>
  <InfoWindow>
    <p>{{ marker.content }}</p>
  </InfoWindow>
</Marker>

Thanks so much

HusamElbashir commented 1 year ago

This isn't supported currently

darrenpaul commented 1 year ago

Thanks @HusamIbrahim

Tofandel commented 1 year ago

Adding vModel feature to the InfoWindow would solve the use case and should be relatively straightforward

HusamElbashir commented 1 year ago

v0.18.0 has v-model as a convenience feature to control info windows.