Skip to content

Commit

Permalink
Get rid of the geolocate and fullscreen map controls
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Jan 4, 2025
1 parent 6309163 commit 4d5ad81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
import type { Map } from "maplibre-gl";
import { init as initRouteSnapper } from "route-snapper-ts";
import { onMount } from "svelte";
import { FillLayer, GeoJSON, MapLibre } from "svelte-maplibre";
import {
FillLayer,
GeoJSON,
MapLibre,
NavigationControl,
ScaleControl,
} from "svelte-maplibre";
import { notNull } from "svelte-utils";
import { Geocoder } from "svelte-utils/map";
import {
Expand Down Expand Up @@ -104,7 +110,6 @@
<div slot="main" style="position: relative; width: 100%; height: 100%;">
<MapLibre
style={`https://api.maptiler.com/maps/${$maptilerBasemap}/style.json?key=${maptilerApiKey}`}
standardControls
hash
bind:map
on:error={(e) => {
Expand Down Expand Up @@ -134,6 +139,8 @@
},
]}
>
<NavigationControl />
<ScaleControl />
<Geocoder {map} apiKey={maptilerApiKey} />
<div bind:this={mapDiv} />
{#if $mode.mode == "title"}
Expand Down

0 comments on commit 4d5ad81

Please sign in to comment.