监听地图视图缩放级别
var map = new AMap.Map(map, {
zoom: 5,
center: [106.143065, 33.058826],
resizeEnable: true
});
map.on("zoomchange",()=>{
var getZoom = map.getZoom();
console.log("缩放级别",getZoom)
})
监听地图视图缩放级别
var map = new AMap.Map(map, {
zoom: 5,
center: [106.143065, 33.058826],
resizeEnable: true
});
map.on("zoomchange",()=>{
var getZoom = map.getZoom();
console.log("缩放级别",getZoom)
})