re-entrance can be trapped if you can decide on the delay
untested psuedo code to illustrate the technique...
var redrawtimer;
function delaidRedraw(force) {
if(redrawtimer){
cancelTimeout(redrawTimer);
setTimeout(function(){ delaidRedraw(force); },25);
}
else {
// actually do the redraw...
}
}
On Sep 8, 1:39 pm, 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
-~----------~----~----~----~------~----~------~--~---