🐛 LayerPopup 复合图层情况
lvisei opened this issue · 1 comments
lvisei commented
🐛 LayerPopup 复合图层报错
https://github.com/antvis/LarkMap/blob/main/src/components/LayerPopup/index.tsx#L47
- 直接复合图层报错
- 复合多主图层情况未考虑
- typeof item.layer === 'string' 情况。未找到是否跳出当前循环,不 console.error,console.warn ?
map((layer) => {
if (layer.isComposite) {
const layers = (layer as ICompositeLayer).getInteractionSubLayers();
return layers.map((_layer) => _layer as unknown as ILayer);
}
return _layer as unknown as ILayer
)