How to capture the end of a Zoom In/Out animation from a MapController

by rajesh.singh » Sat, 29 Jan 2011 03:07:32 GMT


Sponsored Links
 Hello,

Just an interesting query here, is there a way to capture when a zoom
animation sequence has ended when calling either:

MapController.zoomIn() or MapController.zoomOut();

I know that it does kick off an animation sequence to zoom in/out to
the next level, however there is no known way I can find/google
search, etc to find out when it finishes that sequence. I need to be
able to run an update command when that is stopped so my map updates
correctly.

I've found that by running the update command after calling the above
function the Projection isn't from the zoom out level but somewhere
inbetween (so I can't show all the data I need).

Any ideas?

Cheers,
Raj

-- 



Re: How to capture the end of a Zoom In/Out animation from a MapController

by TreKing » Sat, 29 Jan 2011 03:59:48 GMT


 



Not really, the Maps API is really lacking in this regard (well, in a lot of
regards, actually, but we'll focus on this one).

What's been suggested before is for you to track the zoom level yourself,
perhaps on each Draw() call, since you know this is triggered when the map
has been invalidated (which happens on a zoom). Check the zoom level there
and if it's different, trigger your update (or kick off your own
ZoomChangedListener).

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Other Threads

1. can i use HTTP/1.0 in my HttpClient?

Hi Dear,

by default HttpClient use HTTP/1.1 protocol, is there any way to
change it to HTTP/1.0?
any idea?

-- 

2. OOT: Thanks to para Suhu dan Suhi

Thanks to Master SA, akhirnya bisa punya Froyo di N1:-) . Plus di update dl
ke CM 5.07 sebelum di flash ke Froyo.

Memang suhu2 di id-android TOP semua. Baru sebentar join di milis ini, tapi
suhu/i tidak ada yang segan membantu.

Beberapa suhu yang saya kenal yg selalu murah hati dalam membantu dan
meracun...;). Putra A, Faizal A, Renner C, SA, Jakontil, Wiwieth, Pandu,
Dzikk, Wongompong, Justinus, Enya, dkk..

Beberapa hanya ketemu sekali saja, mungkin mereka juga lupa sama saya:).
Tapi setiap pertemuan selalu mencoba utk belajar sedikit demi sedikit.

Mudah2 an suatu hari bisa membagi ilmu seperti para Suhu dan Suhi:D.

-- 
"Indonesian Android Community [id-android]" 

3. Fouder Id-android

4. Strange behavior when launching app from Market

5. about google map nearby search

6. WebView pre-executing JavaScript before loading a page

7. In need of developers with OCR experience