Sort every list of trails, and map trails that have no track
Sorting. Every list of trails has a "Sort by" menu: name, length, time or climb, each in both directions. Where the list is a table, the Trail, Length, Time and Climb heads sort on click and reverse on a second click. Lists open by name, A to Z, except the four that are defined by an order (the longest, under 100 km, a week or less, one to two weeks). The chosen order is kept in the page address. The pages are written in their default order, so they are right without JavaScript. Maps. A trail with no track but a known start and end is drawn as a dotted straight line between the two with a ring at each; one with a single known point is drawn as a ring. They follow the filters, the row highlight and the popup like any track, and that trail's own page shows a map in place of the empty frame. The legend, the caption and the popup say the dotted line is not the trail's path. It gives no download, no GPX status and no elevation. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d84116ce3a
commit
51baaa401e
15 files changed
+1049
-149
No files matched your search
+4
-1
@@ -384,7 +384,9 @@ BULK_FILES = (
|
||||
("trails.json", "Every record in full, as JSON, with the derived fields the site builds.", False),
|
||||
("index.geojson", "Every included track, simplified to about 100 m, with id and name.", True),
|
||||
("overview.geojson", "Every included track simplified to about 750 m for the overview map, "
|
||||
"with id, name, kind, country and length.", False),
|
||||
"with id, name, kind, country and length. A trail with no track but a known "
|
||||
"start or end appears marked as a sketch: a straight line between the two, "
|
||||
"or one point alone. A sketch is not a track.", False),
|
||||
("all-gpx.zip", "Every GPX file (main tracks and alternates, simplified to 5 m), as <id>/<file>, "
|
||||
"with each trail's release.txt, trails.csv, SOURCES.md and a README.", True),
|
||||
("all-geojson.zip", "Every full-resolution GeoJSON main track and alternates file, as <id>/<file>, "
|
||||
@@ -432,6 +434,7 @@ def data_page(records, site, repo_root, out_dir):
|
||||
("<id>-alternates.geojson / .gpx", "Alternate and connector tracks, where the source serves them separately."),
|
||||
("<id>-<source>.geojson", "One source's own extract, where a track combines sources."),
|
||||
("map.json", "The track simplified to 30 m for the trail page map (GeoJSON)."),
|
||||
("sketch.json", "Start and end points only, for the trail page map where there is no track (GeoJSON). Not a track."),
|
||||
("trail.toml", "The record itself: source, licence, verification, logo and route details."),
|
||||
("release.txt", "The source, licence and date the track files came from, where a track is included."),
|
||||
("shield.svg / shield.png", "The trail logo, where one is included. Not licensed; see Logos."),
|
||||
|
||||
Reference in new issue
Block a user