Android中如何限制地图?
我正在开发我的第一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明这是不可能做到的。
Turns out this is not possible to do.