navigator/static/data/_index.json
hermes-explorigin 347e9b2a0a Add custom zones & POI layers with user-editable config and example data
- scripts/custom-layers.mjs: hand-authored, self-documenting config for
  custom zones (polygons) and points of interest, shipped with example
  Tulsa POIs and district zones plus a copy-paste template
- osm-data.mjs: merges custom layers into static/data/custom/<id>.geojson
  and includes them in the _index.json manifest with category, layerType,
  and color metadata
- MapView.svelte: renders each manifest entry as an independent toggleable
  Leaflet layer with per-layer styling and an on-map legend panel
- +page.svelte: loads all data sources (OSM + custom) from the manifest
2026-08-08 16:09:39 +00:00

33 lines
621 B
JSON

[
{
"name": "tulsa",
"label": "Tulsa, Oklahoma",
"category": "osm",
"bbox": [
35.9,
-96.1,
36.3,
-95.7
],
"featureCount": 512,
"path": "/data/tulsa.geojson"
},
{
"name": "my-places",
"label": "My Places",
"category": "custom",
"layerType": "poi",
"color": "#e11d48",
"featureCount": 4,
"path": "/data/custom/my-places.geojson"
},
{
"name": "districts",
"label": "Districts",
"category": "custom",
"layerType": "zone",
"color": "#0ea5e9",
"featureCount": 2,
"path": "/data/custom/districts.geojson"
}
]