How can I call this method only after the user actually stops panning or zooming?
<script type="text/javascript">
var map;
function initialize()
{
/* ... */
google.maps.event.addListener(map,'idle',function()
{
/* do something here */
});
}
</script>
<body onload="initialize()">
<div id="map_canvas"></div>
</body>
How can I make sure that the content in google.maps.event.addListener(map, 'idle', function() does not start right after the page loads?
I want it to work only after the user has actually stopped panning or zooming.
I also tried moving it out of function initialize, but that, of course, didn't work either.