我有全景屏幕。更改缩放后,我需要获取全景缩放值。请帮我。 JsFiddle here
代码:
const zoomControl = new window.ymaps.control.ZoomControl({ options: { position: { right: 10, top: 100 } } });
myMap.controls.add(zoomControl);
zoomControl.events.add('spanchange', (e) => {
console.log('is change', e.zoomValue)
});