首页 / 浏览问题 / WebGIS / 问题详情
this.map.setZoom(13) 有成功回调没
40EXP 2020年11月24日
this.map.setZoom(13) 有成功回调没

1个回答

你好,setZoom这个接口没有回调,直接使用;setZoom(<Number> zoom, <Zoom/pan optionsoptions?)

2,842EXP 2020年11月24日
我没有看明白请问是

            left.map.setZoom(13,res=>{

              console.log(res)

            })

这样写吗?

我这里主要是要下面俩方法一起用动画会冲突我想在setZoom成功后在执行.panTo

this.map.setZoom(13)

left.map.panTo(latlng)
...