Hello all. I am using google maps v2 in my web application. I want to call database to fetch records when map bounds are changed due to zoom or drag. Until now I was using tilesloaded event handler to do it assuming the map bounds will change when all tiles are loaded (I want clarification on this assumption too).
When I do zoom in/out and handle zoomend event to set a flag which is checked in tilesloaded event handler which then queries database using new bounds. This works fine as long as tilesloaded event is fired AFTER zoomend event. But (annoyingly) many a times it is fired BEFORE zoomend event, so in that case the zoom flag wouldn't be set in tilesloaded event handler and no db call happens.
Same happens for drag. And also many times tilesloaded event is not fired when we drag map a little. Does google uses any cache mechanism for map tiles if we drag only a little (just a wild guess).
I want something like bounds_changed event to be fired for v2, please somebody help me out.