Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open and close infowindow #128

Closed
mansour161 opened this issue Mar 13, 2023 · 4 comments
Closed

open and close infowindow #128

mansour161 opened this issue Mar 13, 2023 · 4 comments

Comments

@mansour161
Copy link

hi
i have two problem .
1- when i have a MarkerCluster and want to select second marker , Infowindow of first marker was not closed automatic
2 - when i want to click into map , Infowindow is not closed

thanks

@mansour161 mansour161 changed the title tow prob into infowindow open and cloose infowindow Mar 14, 2023
@mansour161 mansour161 changed the title open and cloose infowindow open and close infowindow Mar 14, 2023
@mansour161
Copy link
Author

mansour161 commented Mar 18, 2023

hi
plse help me with code

@theyokohamalife
Copy link

@husamibrahim @yankeeinlondon

Calling the .close() method on the instance of infoWindow by the ref on InfoWindow doesn't seem to be working. Short example:

<template>
<InfoWindow ref="infoWindowRef" />
</template>

<script>
const infoWindowRef= ref(null)

closeInfoWindow() {
  infoWindowRef.value.infoWindow.close() // has no effect
}
</script>

@theyokohamalife
Copy link

It looks like there is a PR that's been approved but not merged yet that addresses this issue. Any idea on when it will be released?

#125

@HusamElbashir
Copy link
Collaborator

@husamibrahim @yankeeinlondon

Calling the .close() method on the instance of infoWindow by the ref on InfoWindow doesn't seem to be working. Short example:

<template>
<InfoWindow ref="infoWindowRef" />
</template>

<script>
const infoWindowRef= ref(null)

closeInfoWindow() {
  infoWindowRef.value.infoWindow.close() // has no effect
}
</script>

This should work on the lates version v0.16.0. OP's original request for automatically closing info windows isn't supported atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants