开发者

Android Map View Issue

I am having an app which tracks the Geopoints of the user. I simply fetch these points and use them to draw the path on 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开发者_如何学C 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.

Please Help. :) Thanks In Advance.


Use MapController.zoomToSpan(...), you can get the span from your ItemizedOverlay methods getLatSpan(int) and getLonSpan(int). zoomToSpan(...) is a best effort method and does not guarantee that all points will be visible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜