How to Center and Zoom a map in relation to marked positions

4 views
Skip to first unread message

Kevin Donovan

unread,
Sep 29, 2011, 5:06:13 PM9/29/11
to ti...@googlegroups.com
Hi All

Just started looking at Tile5 and I've run into a challenge.
I'm working off of the animation example where the map pans between city markers.
What I'd like to do is call nextCity() and have the map center and zoom if necessary so that both the current and next are visible.

It seems that a bounding box would be helpful, but I haven't figured out how to get it done.
Extra credit for iterating over the whole list in the beginning and optimally centering and zooming to show all list items!

Thanks,
Kevin
Reply all
Reply to author
Forward
0 new messages