为时间轴新增 draggable 特性

This commit is contained in:
JIANG
2025-11-26 11:44:54 +08:00
parent dc7271e3da
commit 70ac7ba177
4 changed files with 280 additions and 266 deletions

View File

@@ -748,13 +748,14 @@ const MapComponent: React.FC<MapComponentProps> = ({ children }) => {
id: "junctionContourLayer",
name: "等值线",
data: junctionData,
cellSize: 400,
aggregation: "MEAN",
cellSize: 200,
contours: [
{ threshold: [0, 10], color: [255, 0, 0] },
{ threshold: [10, 20], color: [255, 127, 0] },
{ threshold: [20, 30], color: [255, 215, 0] },
{ threshold: [30, 40], color: [199, 224, 0] },
{ threshold: [40, 9999], color: [142, 68, 173] },
{ threshold: [0, 16], color: [255, 0, 0] },
{ threshold: [16, 20], color: [255, 127, 0] },
{ threshold: [20, 22], color: [255, 215, 0] },
{ threshold: [22, 24], color: [199, 224, 0] },
{ threshold: [24, 26], color: [76, 175, 80] },
],
getPosition: (d) => d.position,
getWeight: (d: any) =>