views:

396

answers:

1

what event fies when google maps repaint itself? for example when you zoom in or out?

I have an info window open and when it repaints I lose it. I'm using JQuery to load the map on Document.Ready()

+1  A: 

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

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

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

Check this example.

CMS