What event will be fired when Google Map repaints?

what event threatens when Google maps are repainted? for example, when zooming in or out?

I have an info window open and when it is redrawn I lose it. I am using JQuery to load a map in Document.Ready ()

+2


source to share


1 answer


I think you could use the tilesloaded event , but if you want to know exactly when the scale is changed, you can use the zoomend event.

GEvent.addListener(map, "tilesloaded", function() { 
  //...
}); 

GEvent.addListener(map, "zoomend", function (oldZoom, newZoom) { 
  //...
}); 

      



Check out this example .

+3


source







All Articles