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.

--

Reply via email to