Android中如何限制地图?

发布于 2024-08-10 05:59:46 字数 156 浏览 2 评论 0原文

我正在开发我的第一个 Android 应用程序,它部分基于在 Google 地图中显示一些信息。我已经设法设置一个新的中心点和一个新的默认缩放级别(我想要显示的区域是一个城市)。

现在是否可以以某种方式“锁定”新的默认视图?也就是说,用户应该只能在此默认区域内进行放大/缩小和平移。

I'm developing my first Android application and it is based partly on displaying some information in Google Maps. I've managed to set a new center point and a new default zoom level (the area I want to display is a city).

Now is it possible to "lock" that new default view somehow? That is, the user should be able to zoom in/out and pan around only within this default area.

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

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

发布评论

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

评论(1

入画浅相思 2024-08-17 05:59:46

事实证明这是不可能做到的。

Turns out this is not possible to do.

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