Tagged: Open Marker InfoWindows
September 6, 2017 at 1:19 pm #30212W8TTSMember
I currently have the “Open Marker InfoWindows” set to Hover. And once that InfoWindow is open you have to click on the “X”. Is there any way to set the Hover option to close when the cursor is moved away from the marker?
TedSeptember 6, 2017 at 4:43 pm #30237PerryModerator
Thank you for getting in touch with us!
We’ve tried that before but with mixed results. The problem is, because the marker isn’t a HTML element, the infowindow isn’t a child element of the marker.
This means that if you implement the behaviour you’re describing, then when you move the mouse over any part of the infowindow, the mouseout event fires on the marker, which causes the infowindow to close.
Once the infowindow closes, the mouse is over the marker element which has just been revealed, causing the hover event to fire, which opens the infowindow. The mouse is then over the infowindow, so the mouseout event fires on the marker, closing the infowindow, which means the mosue is over the marker, and so on and so on and so on.
The end result of this is the infowindow rapidly opening and closing as you move the cursor around. I may look into a workaround in the future but at the moment to the best of my knowledge this isn’t possible, at least not with Google maps.
Sorry to be the bearer of bad news, is there anything else I can help you with?
– PerrySeptember 6, 2017 at 5:05 pm #30238W8TTSMember
Not bad news. I was just hoping that it would work.
- You must be logged in to reply to this topic.