antvis / L7Plot

🌍 Geospatial Visualization Chart Library
https://l7plot.antv.antgroup.com
MIT License
83 stars 23 forks source link

🤔 [QUESTION] Area 区域图层怎么 增加事件 #272

Closed uuiin closed 1 year ago

uuiin commented 1 year ago

我想在AreaLayer中添加一个mousemove事件,我看了事件代理,然后我这样写

uuiin commented 1 year ago

area.on('loaded', () => { area.on('areaLayer:mousemove', (e: MouseEvent) => { console.log('MouseEvent') }) }) 但是没有用,应该是怎么写的。可以告诉我吗?谢谢

uuiin commented 1 year ago

原来是没有地图数据的时候不可以绑定事件,打扰了,大佬们