新增自定义颜色方案

This commit is contained in:
JIANG
2025-11-20 18:34:54 +08:00
parent 11ccd53672
commit 23154b2b5f
3 changed files with 167 additions and 16 deletions

View File

@@ -666,10 +666,11 @@ const MapComponent: React.FC<MapComponentProps> = ({ children }) => {
layers: [],
});
deckFlowRef.current = deckFlow;
const deckFlowLayer = new DeckLayer(deckFlow);
deckFlowLayer.set("name", "水流动画");
deckFlowLayer.set("value", "waterflow");
deckFlowLayer.set("type", "animation");
const deckFlowLayer = new DeckLayer(deckFlow, {
name: "水流动画",
value: "waterflow",
type: "animation",
});
// 初始化用户可见性状态(默认为 true
deckFlowLayer.initUserVisibility("waterflowLayer", true);
// 设置可见性变化回调,同步更新 waterflowUserVisible