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