Reading the infoWindow opened status
See original GitHub issueI want to close the infoWindow by clicking on the map, it is not possible to get the current status of the infoWindow so it will be impossible to close the opened infoWindow.
Get the feature (reading the infoWindow` opened status) added. Besides that. I don’t see a way to solve this. Maybe is is possible to remove the [x] button from the infowindow by some configuration, so that mapClick() is the only means to close the infoWindow, then you can be sure the state maintained by your code is correct.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Reading the infoWindow opened status · Issue #378 - GitHub
I want to close the infoWindow by clicking on the map, it is not possible to get the current status of the infoWindow...
Read more >Check if infowindow is opened Google Maps v3 - Stack Overflow
Calling InfoWindow.getOpenedState() returns a boolean which reflects the state (opened/closed) of the infowindow. I chose to do it this way ...
Read more >Info Windows | Maps JavaScript API - Google Developers
When you create an info window, it is not displayed automatically on the map. To make the info window visible, you must call...
Read more >InfoWindow doesn't load in map when clicking label
In pset8, I currently have a working map with visible markers with label. However, when I click on one of the markers, no...
Read more >Bug: InfowWindow.setContent() from domready event does ...
1) Add a "domReady" event to my infoWindow and set initial contents. 2) Issue an open() in subsequent processing relying on the listener...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When you do something like this, you can:
@SebastianM, hey! solution: save the infowindow status in the marker and then you can always check the states!