Skip to content

Commit

Permalink
Rebase and rename to layerControl from layerToggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete-Y-CS committed Jul 31, 2023
1 parent 931df6e commit 813b0ca
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<script lang="ts">
import { ExternalLink } from "../common";
import OptionalLayerToggle from "./OptionalLayerToggle.svelte";
import PolygonAmenityLayerControl from "./PolygonAmenityLayerControl.svelte";
</script>

<OptionalLayerToggle name="hospitals" singularNoun="hospital" pluralNoun="Hospitals">
<PolygonAmenityLayerControl
name="hospitals"
singularNoun="hospital"
pluralNoun="Hospitals"
>
<p>
This shows <ExternalLink
href="https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dhospital"
Expand All @@ -17,4 +21,4 @@
Open Data Commons Open Database License
</ExternalLink>
</p>
</OptionalLayerToggle>
</PolygonAmenityLayerControl>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<script lang="ts">
import { ExternalLink } from "../common";
import OptionalLayerToggle from "./OptionalLayerToggle.svelte";
import PolygonAmenityLayerControl from "./PolygonAmenityLayerControl.svelte";
</script>

<OptionalLayerToggle name="schools" singularNoun="school" pluralNoun="Schools">
<PolygonAmenityLayerControl
name="schools"
singularNoun="school"
pluralNoun="Schools"
>
<p>
This shows <ExternalLink
href="https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dschool"
Expand All @@ -17,4 +21,4 @@
Open Data Commons Open Database License
</ExternalLink>
</p>
</OptionalLayerToggle>
</PolygonAmenityLayerControl>
18 changes: 8 additions & 10 deletions src/pages/BrowseSchemes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
import { onDestroy, onMount } from "svelte";
import { processInput, type Scheme } from "../lib/browse/data";
import Filters from "../lib/browse/Filters.svelte";
import HospitalsLayer from "../lib/browse/HospitalsLayer.svelte";
import HospitalsLayerControl from "../lib/browse/HospitalsLayerControl.svelte";
import InterventionColorSelector from "../lib/browse/InterventionColorSelector.svelte";
import MrnLayerControl from "../lib/browse/MrnLayerControl.svelte";
import ParliamentaryConstituenciesLayerControl from "../lib/browse/ParliamentaryConstituenciesLayerControl.svelte";
import SchemeCard from "../lib/browse/SchemeCard.svelte";
import HospitalsLayerToggle from "../lib/browse/HospitalsLayerToggle.svelte";
import MrnLayerToggle from "../lib/browse/MrnLayerToggle.svelte";
import ParliamentaryConstituenciesLayer from "../lib/browse/ParliamentaryConstituenciesLayer.svelte";
import SchoolsLayerToggle from "../lib/browse/SchoolsLayerToggle.svelte";
import StyleInterventions from "../lib/browse/StyleInterventions.svelte";
import SchoolsLayerControl from "../lib/browse/SchoolsLayerControl.svelte";
import {
BaselayerSwitcher,
CollapsibleCard,
Expand Down Expand Up @@ -140,10 +138,10 @@
<InterventionColorSelector />
<hr />
<CheckboxGroup small>
<SchoolsLayerToggle />
<HospitalsLayerToggle />
<MrnLayerToggle />
<ParliamentaryConstituenciesLayer />
<SchoolsLayerControl />
<HospitalsLayerControl />
<MrnLayerControl />
<ParliamentaryConstituenciesLayerControl />
</CheckboxGroup>
<BaselayerSwitcher {style} />
</CollapsibleCard>
Expand Down

0 comments on commit 813b0ca

Please sign in to comment.