Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我一直在使用 mapbox api 来构建自定义地图,现在问题是我必须限制地图的某些部分
虽然我做到了
– setConstraintsSouthWest:northEast:
但现在它不允许我平移缩放和拖动
任何人都可以帮助我吗
您是否设置了等于或小于地图视口的约束?如果约束在地图视图之外,它仍然应该缩放和拖动。