Reputation: 4423
Currently I have this listener event on my google maps:
google.maps.event.addListener(map, 'dragend', function() { checkBounds(); });
However I find that then I "throw" the map (ie on an iPhone taking and clicking the map up to scroll) the dragend happens before the map is done moving; giving me a false boundary. Is there a way to know when the bounds have stopped moving that is graceful? I know i can continue to check using the bounds_changed over and over; however was wondering if there was a cleaner way of doing this.
Cheers
Upvotes: 1
Views: 2004
Reputation: 1891
Try the idle listener instead, although that will also fire after a zoom.
Upvotes: 4