新增自定义颜色方案
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user