Displaying an infowindow on mouseover - with or without a delay - generally gives a bad user experience.
Why? Displaying an infowindow will in many cases *move the map*. What happens then? The marker that just got the mouseover is probably going to get a mouseout. And an unrelated marker may get moved under the mouse position, so you'll now get a mouseover on *that* marker. Either way, that's confusing and frustrating to use. It's like a game of Whac-a-Marker [1]. You could perhaps find a clever way to make this less confusing, but instead I would consider using some other kind of popup instead of an infowindow - something that does not cause the map to move. Here's one example that I wrote for Zvents several years ago: http://events.mercurynews.com/cupertino-ca/venues/show/4476-flint-center (scroll down to the map and then roll the mouse over it) This map does suffer from the "barrage of bubbles" since it doesn't use a timeout - the point to note is that these popups do not move the map, so they avoid the problem I mentioned. Unfortunately this code is not open source, but there must be some good examples of code for this kind of thing. Anyone have any suggestions? -Mike [1]: http://en.wikipedia.org/wiki/Whac-A-Mole On Tue, Apr 6, 2010 at 12:07 PM, itp <[email protected]> wrote: > > I love the ability to show bubble message on mouseover, > but how can I introduce a delay of 1-2 seconds of hovering > before bubble is displayed? Otherwise user will gets barrage > of bubbles while moving across page. > > GEvent.addListener(marker,"mouseover", function() { > marker.openInfoWindowHtml(bubble_message[0]); > }); > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
