Open GoogleCodeExporter opened 9 years ago
Original comment by m...@mg.to
on 11 Oct 2012 at 5:39
While playing around, I noticed that increasing the first timeout in the
"polys" function in polymap.js seems to prevent this problem. My suspicion is
that the redraw needs to wait until the zoom animation is finished. I didn't
see anything in Google Maps to that effect, but I'm still looking.
I upped the timeout from 20ms to 1000 to be sure it was after the zoom
animation, but I believe something shorter could be used.
Original comment by tom.piet...@gmail.com
on 17 Oct 2012 at 6:45
Nice work, thanks! Yes, that is along similar lines to what I was thinking. I'd
tried using the map idle event, but it seems to fire before the panning/zooming
is done. I was going to experiment with an initial redraw followed by a timer
which trigger a second redraw if a move or resize is detected (ugh).
In the meantime the longer timer like you're using seems like a fine workaround.
Original comment by m...@mg.to
on 24 Oct 2012 at 1:50
I also tried the map idle event, with the same results.
I had some good results drawing using a single-shot idle event handler, created
in the zoom event handler, but never got it quite right...
Currently I'm using a 400ms timer as a workaround, which has been working well
enough. I will let you know if I turn up anything else useful.
Original comment by tom.piet...@gmail.com
on 25 Oct 2012 at 1:57
Original issue reported on code.google.com by
tom.piet...@gmail.com
on 10 Oct 2012 at 5:36