删除调试信息
This commit is contained in:
@@ -401,7 +401,6 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
|
|||||||
conditions.push(dimensions[i]);
|
conditions.push(dimensions[i]);
|
||||||
}
|
}
|
||||||
conditions.push(dimensions[dimensions.length - 1]);
|
conditions.push(dimensions[dimensions.length - 1]);
|
||||||
console.log("生成的尺寸条件表达式:", conditions);
|
|
||||||
return conditions;
|
return conditions;
|
||||||
};
|
};
|
||||||
const generateDimensionPointConditions = (property: string): any[] => {
|
const generateDimensionPointConditions = (property: string): any[] => {
|
||||||
@@ -419,7 +418,6 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
conditions.push(dimensions[dimensions.length - 1]);
|
conditions.push(dimensions[dimensions.length - 1]);
|
||||||
console.log("生成的点尺寸条件表达式:", conditions);
|
|
||||||
return conditions;
|
return conditions;
|
||||||
};
|
};
|
||||||
// 创建基于 breaks 的动态 FlatStyle
|
// 创建基于 breaks 的动态 FlatStyle
|
||||||
|
|||||||
@@ -93,7 +93,8 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
const fetchFrameData = async (
|
const fetchFrameData = async (
|
||||||
queryTime: Date,
|
queryTime: Date,
|
||||||
junctionProperties: string,
|
junctionProperties: string,
|
||||||
pipeProperties: string
|
pipeProperties: string,
|
||||||
|
schemeName: string
|
||||||
) => {
|
) => {
|
||||||
const query_time = queryTime.toISOString();
|
const query_time = queryTime.toISOString();
|
||||||
let nodeRecords: any = { results: [] };
|
let nodeRecords: any = { results: [] };
|
||||||
@@ -103,7 +104,7 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
let linkPromise: Promise<any> | null = null;
|
let linkPromise: Promise<any> | null = null;
|
||||||
// 检查node缓存
|
// 检查node缓存
|
||||||
if (junctionProperties !== "") {
|
if (junctionProperties !== "") {
|
||||||
const nodeCacheKey = `${query_time}_${junctionProperties}`;
|
const nodeCacheKey = `${query_time}_${junctionProperties}_${schemeName}`;
|
||||||
if (nodeCacheRef.current.has(nodeCacheKey)) {
|
if (nodeCacheRef.current.has(nodeCacheKey)) {
|
||||||
nodeRecords = nodeCacheRef.current.get(nodeCacheKey)!;
|
nodeRecords = nodeCacheRef.current.get(nodeCacheKey)!;
|
||||||
} else {
|
} else {
|
||||||
@@ -135,10 +136,10 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"Query Time:",
|
// "Query Time:",
|
||||||
queryTime.toLocaleDateString() + " " + queryTime.toLocaleTimeString()
|
// queryTime.toLocaleDateString() + " " + queryTime.toLocaleTimeString()
|
||||||
);
|
// );
|
||||||
// 等待所有有效请求
|
// 等待所有有效请求
|
||||||
const responses = await Promise.all(requests);
|
const responses = await Promise.all(requests);
|
||||||
|
|
||||||
@@ -379,7 +380,8 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
fetchFrameData(
|
fetchFrameData(
|
||||||
currentTimeToDate(selectedDate, currentTime),
|
currentTimeToDate(selectedDate, currentTime),
|
||||||
junctionText,
|
junctionText,
|
||||||
pipeText
|
pipeText,
|
||||||
|
schemeName
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, [junctionText, pipeText, currentTime, selectedDate]);
|
}, [junctionText, pipeText, currentTime, selectedDate]);
|
||||||
|
|||||||
@@ -183,9 +183,6 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons }) => {
|
|||||||
map.removeLayer(highLightLayer);
|
map.removeLayer(highLightLayer);
|
||||||
};
|
};
|
||||||
}, [map]);
|
}, [map]);
|
||||||
useEffect(() => {
|
|
||||||
console.log(layerStyleStates);
|
|
||||||
}, [layerStyleStates]);
|
|
||||||
// 高亮要素的函数
|
// 高亮要素的函数
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!highlightLayer) {
|
if (!highlightLayer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user