[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-15 Thread CaptainSpam
Oh, I see what you're saying. I wasn't at all testing it DURING the pinch-zoom, only when it actually finished (my app doesn't require that level of accuracy). Yes, I believe when I was testing it, it didn't fire during the zoom. On Feb 13, 11:43 pm, JP joachim.pfeif...@gmail.com wrote:

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-13 Thread CaptainSpam
I just tested this out, and it seems like it does work (that is, draw() IS getting called after a zoom). And, it doesn't seem to be hogging on system resources, calling draw repeatedly. So all in all, I'd say it's a workable workaround, though a cleaner interface in the API would be more

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-13 Thread JP
Correct. I don't get any draw()'s in an Overlay during pinch-to-zoom action. Once released, the map snaps to the next zoom level (as driven by the MapView et al). This triggers draw()'s and the app has an opportunity to catch up. Can you confirm draw()'s are indeed fired during pinch-to-zoom, as

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-12 Thread CaptainSpam
I think I see what he's saying. The theory is that the Overlay's draw() method would be called after a zoom, among other times. You could pass the Overlay a MapView to check over the zoom level, and during the draw() method, see if it's changed. If it has, that effectively becomes your

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-12 Thread CaptainSpam
Oh, wait, hang on, you're saying the draw()s AREN'T being dispatched in the Overlays during pinch-zoom? Huh. Well, if that's true, then that wouldn't work at all. I'll have to test it later. On Feb 12, 2:16 am, JP joachim.pfeif...@gmail.com wrote: Not sure if I follow. As nothing is fired in

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-11 Thread JP
I found this with the N1 update as well... it seems to me that the dispatching of draw()'s to the registered Overlay's is missing while the user manipulates the zoom level through the pinch-to-zoom method. On Feb 11, 11:23 am, CaptainSpam captains...@gmail.com wrote: Ever since the update that

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-11 Thread Hugo Visser
As a work around, you don't need to poll...You can register an overlay that doesn't draw anything and checks the current zoom level against the previous draw zoom level and take it from there...On zooming there will be a redraw of the map so it should work out fine. On Feb 11, 8:23 pm,

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-11 Thread JP
Not sure if I follow. As nothing is fired in the way of an Overlay - how would it know to do anything? On Feb 11, 11:02 pm, Hugo Visser botte...@gmail.com wrote: As a work around, you don't need to poll...You can register an overlay that doesn't draw anything and checks the current zoom level