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} - /> + > + <GeolocateControl /> + </Map> </div> </div> );