views:

137

answers:

2

What I'm trying to do is very simple:

open the marker's info window only if the user has hovered on the marker for longer than x millisecond.

I can't find how to do this anywhere. I would appreciate a little code snippet to show me how to set this up!

+1  A: 

The jQuery HoverIntent plugin might be able to help you

http://cherne.net/brian/resources/jquery.hoverIntent.html

hoverIntent is a plug-in that attempts to determine the user's intent... like a crystal ball, only with mouse movement! It works like (and was derived from) jQuery's built-in hover. However, instead of immediately calling the onMouseOver function, it waits until the user's mouse slows down enough before making the call.

micmcg
Very interesting. I'll take a look at that. Thanks for your help.
Ali
A: 

Actually I finally found the solution to it on the Google Maps Group here: http://groups.google.com/group/google-maps-api/browse_thread/thread/73cf193d42a0bbfe/fa531a39b353d198?lnk=gst&q=open+hover#fa531a39b353d198

Best of luck to all the late night coders out there :)

Ali