Skip to content

Commit

Permalink
Refactor Geocoder
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Apr 27, 2024
1 parent 64e2c2b commit b577d9d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 36 deletions.
13 changes: 8 additions & 5 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"vite-plugin-wasm-pack": "0.1.11"
},
"dependencies": {
"@maptiler/geocoding-control": "^1.2.2",
"@picocss/pico": "^2.0.3",
"@turf/along": "^6.5.0",
"maplibre-draw-polygon": "github:dabreegster/maplibre-draw-polygon",
Expand Down
4 changes: 2 additions & 2 deletions web/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import initRouteSnapper from "route-snapper";
import { onMount } from "svelte";
import { FillLayer, GeoJSON, MapLibre } from "svelte-maplibre";
import { Geocoder } from "svelte-utils";
import {
DisableInteractiveLayers,
Geocoder,
Layout,
layerId,
StreetView,
Expand Down Expand Up @@ -143,7 +143,7 @@
},
]}
>
<Geocoder />
<Geocoder {map} apiKey={maptilerApiKey} />
<div bind:this={mapDiv} />
{#if $mode.mode == "title"}
<TitleMode {wasmReady} />
Expand Down
27 changes: 0 additions & 27 deletions web/src/common/Geocoder.svelte

This file was deleted.

1 change: 0 additions & 1 deletion web/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {

export { default as BasemapPicker } from "./BasemapPicker.svelte";
export { default as DisableInteractiveLayers } from "./DisableInteractiveLayers.svelte";
export { default as Geocoder } from "./Geocoder.svelte";
export { default as Layout } from "./Layout.svelte";
export { default as Link } from "./Link.svelte";
export { default as Modal } from "./Modal.svelte";
Expand Down

0 comments on commit b577d9d

Please sign in to comment.