2011-07-20 18 views
2

私は、ユーザーのジオポイントを追跡するアプリを持っています。私はこれらのポイントをフェッチしてマップビューにパスを描画するだけです。Androidマップの表示問題

My issue is, when I see the path tracked by user, the path seems to be correctly plotted but, when I have a first look over the map,it does not show me an entire zoomed out view of the map where I can see all the track path. Instead the map begins with from where I started tracking and then I need to scroll all my way to see the further tracks. 

お願いします。 :) ありがとうございました。

答えて

1

MapController.zoomToSpan(...)を使用すると、ItemizedOverlayメソッドgetLatSpan(int)getLonSpan(int)からスパンを取得できます。 zoomToSpan(...)はベストエフォートメソッドであり、すべてのポイントが表示されることを保証するものではありません。