I already added a click event listener to close the mouse-over
InfoWindow and open a "sticky" version in place of the mouse-over
one. The "sticky" InfoWindow basically stays up until the user closes
it by clicking on the "x" in the upper right corner of the InfoWindow.
The thing is, my users keep bugging me about having a popup that
functions exactly the way I described originally. It's like every
month or so, I get someone asking me to implement a pinnable
InfoWindow when a mouse-over a marker occurs. Then when a mouse-out
occurs, the InfoWindow is supposed to disappear immediately unless the
InfoWindow is pinned. I keep on telling the user (my clients) that
this is just not possible with the Google Map's InfoWindow. Can the
experts at Google agree with me on this or is there a way?
I'm currently exploring the option of making the mouse-out event set a
timeout delay long enough for the user to actually hover over the
InfoWindow. Within the InfoWindow, I'll try and capture the mouse-
over event of a div container and cancel out any close event from the
marker's mouse-out event listener. From there, hopefully, I can get
this to work. If anyone has a better suggestion, please post your
solution. Greatly appreciate it.
Thanks!