Skip to content

Commit

Permalink
Move out some common code
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Apr 26, 2024
1 parent 916c2fa commit af9dd28
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 28 deletions.
10 changes: 9 additions & 1 deletion web/package-lock.json

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

3 changes: 2 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@turf/bbox": "^6.5.0",
"maplibre-draw-polygon": "github:dabreegster/maplibre-draw-polygon",
"maplibre-gl": "^4.1.0",
"svelte-maplibre": "^0.8.3"
"svelte-maplibre": "^0.8.3",
"svelte-utils": "github:a-b-street/svelte-utils"
}
}
24 changes: 0 additions & 24 deletions web/src/common/Legend.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
@@ -1,7 +1,6 @@
export { default as BasemapPicker } from "./BasemapPicker.svelte";
export { default as Geocoder } from "./Geocoder.svelte";
export { default as Layout } from "./Layout.svelte";
export { default as Legend } from "./Legend.svelte";
export { default as Loading } from "./Loading.svelte";
export { default as Map } from "./Map.svelte";
export { default as StreetView } from "./StreetView.svelte";
Expand Down
3 changes: 2 additions & 1 deletion web/src/street-explorer/RenderBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
GeoJSON,
} from "svelte-maplibre";
import { showingBundles, blockGj } from "./stores";
import { network, Legend } from "../common";
import { network } from "../common";
import { Legend } from "svelte-utils";
$: active = $blockGj.features.length > 0;
Expand Down

0 comments on commit af9dd28

Please sign in to comment.