From 7d0fe2f3e19ccab1d3431d61b6294226adc57dae Mon Sep 17 00:00:00 2001 From: yuiseki Date: Thu, 7 Nov 2024 17:42:22 +0900 Subject: [PATCH] feat(TridentFileSystem): add GeolocateControl to the map component --- src/app/charites/TridentFileSystem.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/charites/TridentFileSystem.tsx b/src/app/charites/TridentFileSystem.tsx index 6f7ae3fd..02cf6af0 100644 --- a/src/app/charites/TridentFileSystem.tsx +++ b/src/app/charites/TridentFileSystem.tsx @@ -5,7 +5,7 @@ import { vscodeDark } from "@uiw/codemirror-theme-vscode"; import { yaml } from "@codemirror/lang-yaml"; import { useKeyBind } from "@/hooks/keybind"; import { parseYamlWithIncludes } from "@/utils/parseYaml"; -import Map from "react-map-gl/maplibre"; +import Map, { GeolocateControl } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl.css"; // デフォルトの内容 @@ -553,7 +553,9 @@ export const TridentFileSystem: React.FC = () => { }} style={{ width: "100vw", height: "80vh" }} mapStyle={styleJsonOutput} - /> + > + + );