- custom-layers.mjs: new 'path' layerType (LineStrings like GPX tracks/trails) with a 'line' feature format, an example trails layer, and a seeded Rogers County POI layer with real geocoded coordinates (museums, courthouse, university, towns) - osm-data.mjs: converts path features to GeoJSON LineStrings and tags layerType='path' in the manifest; fixes kind detection for all three types - MapView.svelte: styles path layers as dashed polylines, computes bounds for LineStrings, supports 'path' in search results, and adds a Nominatim 'Places (online)' geocoding fallback section to the search box (debounced, fit-to-bounds on select) - geocode.ts: dependency-free Nominatim client - README: documents path layers and online location search
51 lines
1.0 KiB
JSON
51 lines
1.0 KiB
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"
|
|
},
|
|
{
|
|
"name": "trails",
|
|
"label": "Trails & Routes",
|
|
"category": "custom",
|
|
"layerType": "path",
|
|
"color": "#22c55e",
|
|
"featureCount": 1,
|
|
"path": "/data/custom/trails.geojson"
|
|
},
|
|
{
|
|
"name": "rogers-county",
|
|
"label": "Rogers County",
|
|
"category": "custom",
|
|
"layerType": "poi",
|
|
"color": "#f59e0b",
|
|
"featureCount": 7,
|
|
"path": "/data/custom/rogers-county.geojson"
|
|
}
|
|
] |