Google Map event bounds_changed triggered multiple times when dragging

I have a google map with markers. I want my markers to be refreshed when the map is moved/zoomed...

Google recommend to use the event bounds_changed for that, but when I move the map, the event is triggered for each pixel that I move the map. I want the map to be refreshed only when the user stopped moving the map, i.e. when he released the mouse button after dragging.

How can I do that ?



It turns out it was a reported bug:

The Google team recommend to use the event "idle". For example :

google.maps.event.addListener(map, 'idle', function() {

Need Your Help

Passing java.util.Map from jsp to servlet

java spring jsp servlets

I have some class named Configuration that have some fields of types java.util.List and java.util.Map.

Stacking and shifting divs in responsive

css html5 css-float responsive-design

I'm trying to get the following full screen arrangement:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.