-
- {#if markers > 0}
- {markers} features loaded
- {:else}OSM data
- {/if}
-
+ {totalFeatures} features loaded
{#if loading}
Loading map & data…
{/if}
{#if error}
Error: {error}
{/if}
+
+ {#each layers as layer (layer.name)}
+
+ {/each}
+
+
\ No newline at end of file
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index c9f8b02..d9e40f0 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,43 +1,24 @@
@@ -47,30 +28,27 @@
-
- {#if areas.length}
- {totalFeatures} total features across {areas.length} area(s)
+ ({areas.length}) data sources
+ {#if totalFeatures > 0}
+ {totalFeatures} features
{/if}
+ Toggle layers on the map (top-right).
{#if manifestError}
Could not load data manifest (/data/_index.json).
- Run npm run build:data to fetch OSM data, then rebuild.
+ Run npm run build:data to fetch OSM data and merge custom
+ layers, then rebuild.
{manifestError}
- {:else if dataUrls.length}
-
+ {:else if areas.length}
+
{:else if !loading}
-
No built data areas found.
+
+ No built data found. Run npm run build:data to fetch OSM
+ data and/or add zones & POIs in scripts/custom-layers.mjs.
+