From 76b473fc0c1106e3c5d1559f559948d00ec103bf Mon Sep 17 00:00:00 2001 From: yuiseki <yuiseki@gmail.com> Date: Sat, 9 Nov 2024 15:21:13 +0900 Subject: [PATCH] keep original intent of geojson --- src/app/page.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8cc96da4..d684c975 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -39,7 +39,12 @@ export default function Home() { const [mapTitle, setMapTitle] = useState<string | undefined>(undefined); const mapRef = useRef<MapRef | null>(null); const [geojsonWithStyleList, setGeojsonWithStyleList] = useState< - Array<{ id: string; style: TridentMapsStyle; geojson: FeatureCollection }> + Array<{ + id: string; + line: string; + style: TridentMapsStyle; + geojson: FeatureCollection; + }> >([]); const [location, setLocation] = useState<string | undefined>(undefined); @@ -194,6 +199,7 @@ export default function Home() { ...prev, { id: "layer-" + prev.length + 1, + line: line, style: style, geojson: newGeojson, },