antvis / L7Plot

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

🤔 [QUESTION] IconImageLayer选中后如何改变icon颜色 #359

Open MangMax opened 2 months ago

MangMax commented 2 months ago

🐛 Question description [Please make everyone to understand it]

请问IconImageLayer选中后如何改变icon颜色,尝试了在select中设置color和fillColor都没有效果

💻 Link to minimal reproduction

https://codesandbox.io/s/mh8gf8

🏞 Expected result

点击图标后变成红色

🚑 Any additional [like screenshots]

lvisei commented 2 months ago

目前还不支持颜色设置,有时间感兴趣来个 PR https://github.com/antvis/L7Plot/blob/main/packages/composite-layers/src/composite-layers/icon-layer/icon.ts#L125-L137