diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..9cc7dd05b --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +src/style/main.* diff --git a/src/lib/browse/CycleParkingLayerControl.svelte b/src/lib/browse/CycleParkingLayerControl.svelte new file mode 100644 index 000000000..ddfc89017 --- /dev/null +++ b/src/lib/browse/CycleParkingLayerControl.svelte @@ -0,0 +1,64 @@ + + + + + Cycle parking + + +

+ Cycle parking, according to + OpenStreetMap + (as of 9 August 2023). The type of parking, public/private + access, and whether it's covered are not shown. +

+

+ License: + Open Data Commons Open Database License + +

+
+
+
+ + diff --git a/src/lib/browse/colors.ts b/src/lib/browse/colors.ts index 4b9dbb17c..d15867ee3 100644 --- a/src/lib/browse/colors.ts +++ b/src/lib/browse/colors.ts @@ -12,6 +12,7 @@ export const colors = { local_planning_authorities: "red", bus_route_with_lane: "#9362BA", bus_route_without_lane: "#C2A6D8", + cycle_parking: "black", // Color ramp from https://www.ons.gov.uk/census/maps/choropleth sequential_low_to_high: [ diff --git a/src/maplibre_helpers.ts b/src/maplibre_helpers.ts index 53da378ae..cb5c2f731 100644 --- a/src/maplibre_helpers.ts +++ b/src/maplibre_helpers.ts @@ -298,6 +298,7 @@ const layerZorder = [ "mrn", "bus_routes", "railway_stations", + "cycle_parking", // Polygons are bigger than lines, which're bigger than points. When geometry // overlaps, put the smaller thing on top diff --git a/src/pages/BrowseSchemes.svelte b/src/pages/BrowseSchemes.svelte index a0ab83e94..fe4bc848c 100644 --- a/src/pages/BrowseSchemes.svelte +++ b/src/pages/BrowseSchemes.svelte @@ -7,6 +7,7 @@ import BusRoutesLayerControl from "../lib/browse/BusRoutesLayerControl.svelte"; import CensusOutputAreaLayerControl from "../lib/browse/CensusOutputAreaLayerControl.svelte"; import CombinedAuthoritiesLayerControl from "../lib/browse/CombinedAuthoritiesLayerControl.svelte"; + import CycleParkingLayerControl from "../lib/browse/CycleParkingLayerControl.svelte"; import { processInput, type Scheme } from "../lib/browse/data"; import Filters from "../lib/browse/Filters.svelte"; import HospitalsLayerControl from "../lib/browse/HospitalsLayerControl.svelte"; @@ -162,10 +163,11 @@ - + +