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.
TedMarch 17, 2020 at 1:46 am #58324cabrinamcginnParticipant
I have the same question. It has been three years since this question was asked though and Im wondering if there have been any updates? I would really like to my infowindows to collapse when the cursor is moved away from them.
CabrinaMarch 17, 2020 at 8:38 am #58327AbelCModerator
Thank you so much for getting in touch with us.
Unfortunately, this is not supported by default at the moment, however, this can be achieved with Custom JS. We do apologize for the inconvenience.
Could I kindly ask if you could please provide me with a link to your map page so that we can prepare the code needed to achieve this?
I hope this helps clarify and we look forward to hearing back from you.
AbelMarch 22, 2020 at 5:21 pm #58369lafaimParticipant
My info window is not lined out right.
I have chosen the circular info window but my Titel and Adress are overlapping.
I also have to scroll in the description.
How can this be solved? I would like to have no scroll down, just the info at first view. And ofcourse no overlapping.
Let me know!
Attachments:You must be logged in to view attached files.March 23, 2020 at 7:29 am #58371AbelCModerator
Thank you so much for getting back to me, and we do apologize for the inconvenience.
Could I kindly ask if you would be open to please provide me with a link to your map page?
We will then be able to take a closer look at what is causing this issue and get back to you as soon as possible.
Alternatively, could you please submit a support ticket here -> https://www.wpgmaps.com/support/
Again, we do apologize for the inconvenience.
I look forward to hearing back from you.
- You must be logged in to reply to this topic.