Android 地图视图问题

发布于 2024-11-25 10:08:06 字数 446 浏览 0 评论 0原文

我有一个跟踪用户地理点的应用程序。我只是获取这些点并使用它们在地图视图上绘制路径。

   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.

请帮忙。 :) 提前致谢。

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 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

折戟 2024-12-02 10:08:06

使用 MapController.zoomToSpan(...),您可以从 ItemizedOverlay 方法获取跨度 getLatSpan (整数)getLonSpan (整数)。 ZoomToSpan(...) 是一种尽力而为的方法,并不保证所有点都可见。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文