On Fri, Mar 28, 2008 at 06:21:40AM -0600, Gregor Mosheh wrote:
> Gérald Quintana wrote:
> > Is it possible to display a tooltip when the mouse stops moving over the 
> > map?
> 
> I posted my responses a few weeks ago, along with some working code. 
> Check the archives and ask again if you can't find it.
> 
> The basic outline is:
> - add a mousemove handler to the map object
> - the event handler saves the event to a variable, and does a 
> clearTimeout() and setTimeout() to keep from firing the handler a 
> zillion times when someone sneezes
> - the timeout's handler reads the variable and does basically the same 
> as you would for a click event

This seems a lot harder than it needs to be, since after the last
request we added a handler to trunk which does all this for you:

http://openlayers.org/dev/examples/hover-handler.html

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to