Closed htyaw closed 2 years ago
const bounds = new window.BMapGL.Bounds( new window.BMapGL.Point(79.031845, 23.07253), new window.BMapGL.Point(139.522157, 58.525824), ); map.setBounds(bounds);
试试map.restrictBounds(bounds)
map.restrictBounds(bounds)
谢谢 刚才试了一下这个方法可以
const bounds = new window.BMapGL.Bounds( new window.BMapGL.Point(79.031845, 23.07253), new window.BMapGL.Point(139.522157, 58.525824), ); map.setBounds(bounds);