atom feed1 message in com.googlegroups.android-beginners[android-beginners] zoomToSpan() then...
FromSent OnAttachments
Jeffrey BlattmanOct 5, 2009 4:30 pm.png
Subject:[android-beginners] zoomToSpan() then setZoom()
From:Jeffrey Blattman (jeff@gmail.com)
Date:Oct 5, 2009 4:30:03 pm
List:com.googlegroups.android-beginners
Attachments:

i have some code that uses zoomToSpan(...), then calls getZoomLevel() and based on the result may call setZoom(...). this is to ensure a minimum zoom level.

what i am seeing is that the call to setZoom(...) is ignored and the level is not set. does zoomToSpan() introduce some sort of pending operation that when executed overwrites the call to setZoom()? perhaps the operation hasn't animated to the value yet?

not sure if there's another way to do this ... as i don't think there's any way to go directly from a lat-lng span to a zoom level other than calling zoomToSpan() and getting the result.

any ideas?

thanks.