Skip to content

Commit

Permalink
feat(TridentFileSystem): add GeolocateControl to the map component
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Nov 7, 2024
1 parent 74a8a1b commit 7d0fe2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/charites/TridentFileSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

// デフォルトの内容
Expand Down Expand Up @@ -553,7 +553,9 @@ export const TridentFileSystem: React.FC = () => {
}}
style={{ width: "100vw", height: "80vh" }}
mapStyle={styleJsonOutput}
/>
>
<GeolocateControl />
</Map>
</div>
</div>
);
Expand Down

0 comments on commit 7d0fe2f

Please sign in to comment.