Skip to content

Commit

Permalink
keep original intent of geojson
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Nov 9, 2024
1 parent 1252ba0 commit 76b473f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -194,6 +199,7 @@ export default function Home() {
...prev,
{
id: "layer-" + prev.length + 1,
line: line,
style: style,
geojson: newGeojson,
},
Expand Down

0 comments on commit 76b473f

Please sign in to comment.