给地图设置fitbounds不起作用的原因原来是地图没有加载完
// 地图加载完成事件
this.map.on('load', () => {
this.map.fitBounds(this.mapBounds)
})
给地图设置fitbounds不起作用的原因原来是地图没有加载完
// 地图加载完成事件
this.map.on('load', () => {
this.map.fitBounds(this.mapBounds)
})