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

Show one infowindow at a time #55

Open
thagul opened this issue May 29, 2015 · 4 comments
Open

Show one infowindow at a time #55

thagul opened this issue May 29, 2015 · 4 comments

Comments

@thagul
Copy link

thagul commented May 29, 2015

If I add description to each markers, and then click on every markers, all infowindows stay open.
I would like to show one infowindow at a time, as suggested in the Google Documentation regarding infowindow (https://developers.google.com/maps/documentation/javascript/infowindows#add)

Best practices: For the best user experience, only one info window should be open on the map at any one time. Multiple info windows make the map appear cluttered. If you only need one info window at a time, you can create just one InfoWindow object and open it at different locations or markers upon map events, such as user clicks. If you do need more than one info window, you can display multiple InfoWindow objects at the same time.

I can't find a way to do that. Any suggestion?
Thanks

@brandonparsons
Copy link

@thagul Did you figure out a way to make this happen?

@thagul
Copy link
Author

thagul commented Jun 8, 2015

No, I didn't find a way to do that and unfortunately I've no much time to dig any further. I'm very busy on more urgent issues on my project and this is not one of them

@huafu
Copy link
Owner

huafu commented Jul 2, 2015

Ok, that's something I'll be adding in 0.1. Basically (if someone wants to do a PR) it'd need a property on the google-map component to point to the currently shown info-window, and in the info-window view, use that value to close the old one before updating that property with the new opening one. I know it might be a bit more complex, just no time to work on this now :-/

@oswaldoacauan
Copy link

👍

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

4 participants