We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/### 使用ChoroplethLayer行政区下钻组件时,想监听 legend 改变的方法,发现没有生效
<ChoroplethLayer id="boundsLayer" autoFit: true, fillColor: { field: 'predictsValue', value: [ '#fadfce', '#ffbb96', '#ff8f5b', '#fc6e35', '#f03c21', ] }, zIndex: 0, opacity: 0.8, lineWidth: 1, label: { field: 'areaName', visible: true, style: { fill: 'black', fontSize: 12, stroke: '#fff', strokeWidth: 1 }, }, source={{ data: boundData }} onCreated={(layer) => { layer?.on('legend:color', () => console.log('监听legend:color')); // 无效,没有打印语句 layer?.on('legend', () => console.log('监听legend')); // 无效,没有打印语句 layer?.on('dataUpdate', () => console.log('监听legend')); // 生效,有打印语句 }} />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
/### 使用ChoroplethLayer行政区下钻组件时,想监听 legend 改变的方法,发现没有生效
The text was updated successfully, but these errors were encountered: