mapbox gl js盖缩放以避免重复世界
我想限制用户可以缩放多少,以使区域从未在地图上显示两次。我尝试将RenderWorldCopies设置为false,但是缩放时地图的宽度减小。在将地图宽度保持在可用宽度的100%时,我该如何限制放大?
I'd like to limit how much the user can zoom out, such that a region is never displayed twice on the map. I tried setting renderWorldCopies to false, but then the width of the map decreases when zooming out. How can I limit zooming out while keeping the map width at 100% of available width?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在实例化地图时设置
minzoom
:You can set
minZoom
when instantiating the map: