By the way, for custom overlays, redraw is called with argument "false" when the map moves ( when the api triggers "move" event), and "true" when the map zoom level changes, so "redraw(false)" may be called very frequently. and most of my custom overlays just doing nothing in redraw when argument force is false
But still, re-entrance should be considered, and I met it before, too. On 9月9日, 上午2时39分, Rossko <[EMAIL PROTECTED]> wrote: > > But > > when I tried to zoom in on ie7 for several times, the background > > becomes opaque. > > Sounds like it is somehow adding the overlay image multiple times? > > I ran into a problem with a custom overlay (gridlines) a while back > and dicovered that .redraw() gets fired much more often than you might > think, and coud be re-entrant - a second redraw() may be called before > a first one is finished. > > In that case I simplified the .redraw() to do nothing, and instead > called a custom equivalent only on map zoomend or movend events. > > Old threads > -http://groups.google.com/group/Google-Maps-API/browse_thread/thread/2...http://groups.google.com/group/Google-Maps-API/browse_thread/thread/7... > > cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
