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 <[email protected]> wrote: > 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 > long as multiple locations are touched? > > On Feb 12, 8:35 am, CaptainSpam <[email protected]> wrote: > > > > > 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 <[email protected]> wrote: > > > > 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 <[email protected]> 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 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, CaptainSpam <[email protected]> wrote: > > > > > > Ever since the update that allows multitouch gestures on the Maps app > > > > > (pinch-zooming, mostly), I've noticed that apps using the Google Maps > > > > > API also seem to automatically support it. That, in and of itself, is > > > > > good. Convenient! > > > > > > However, my app has a need to know when the user has zoomed the map. > > > > > As it stands now, I've just been watching over the only way this has > > > > > been possible before: The zoom control buttons. It appears that > > > > > there's no callback to know when the map has been zoomed (only > > > > > MapController commands to MAKE the map zoom), so developers don't > > > > > appear to have any way of knowing if the zoom level was changed > > > > > outside of their control (i.e. pinch-zooming) apart from constantly > > > > > polling the MapView. > > > > > > Is there any good way around this, or is an update like this in the > > > > > cards for the API? Or am I just missing something obvious? -- You received this message because you are subscribed to the Google Groups "Android Developers" 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/android-developers?hl=en

