我有一个跟踪用户地理位置的应用。我只需获取这些点并使用它们在Map View上绘制路径。
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.
请帮助。 :) 在此先感谢。
答案 0 :(得分:1)
使用MapController.zoomToSpan(...),您可以从ItemizedOverlay方法getLatSpan(int)和getLonSpan(int)获取范围。 zoomToSpan(...)是一种尽力而为的方法,并不保证所有点都可见。