From e6269521510e474ed8ed665d613de77f495f7d38 Mon Sep 17 00:00:00 2001 From: Kevin Zheng Date: Thu, 21 Sep 2023 00:12:50 +1000 Subject: [PATCH] Update wording --- .../layer-editor/layers/queryLayerSource.tsx | 42 ++++++++++++------- .../renderer/map-parser/grid/index.tsx | 19 +++++---- .../components/renderer/map-parser/index.tsx | 5 +-- .../renderer/map-parser/mesh/index.tsx | 3 +- .../renderer/map-parser/network/index.tsx | 3 +- .../renderer/map-parser/poly/index.tsx | 3 +- 6 files changed, 46 insertions(+), 29 deletions(-) diff --git a/client/src/components/layer-editor/layers/queryLayerSource.tsx b/client/src/components/layer-editor/layers/queryLayerSource.tsx index 8f3d294d..7c29c46e 100644 --- a/client/src/components/layer-editor/layers/queryLayerSource.tsx +++ b/client/src/components/layer-editor/layers/queryLayerSource.tsx @@ -12,6 +12,7 @@ import { LayerSource, inferLayerName } from "./LayerSource"; import { Option } from "./Option"; import { MapLayerData } from "./mapLayerSource"; import { TraceLayerData, traceLayerSource } from "./traceLayerSource"; +import { Typography as Type } from "@mui/material"; async function findConnection( connections: Connection[], @@ -41,43 +42,54 @@ export const queryLayerSource: LayerSource<"query", QueryLayerData> = { const [{ algorithms }] = useFeatures(); const [connections] = useConnections(); const filteredLayers = filter(layers, (c) => c.source?.type === "map"); + const selectedLayer = find(filteredLayers, { key: mapLayerKey }); return ( <>