Add 19 trails and 20 tracks, record stated permission, and remove the C&O Canal Towpath
A deeper, region-by-region search of the web added 14 official trails and 4 routes. The Hoosier Heritage Trail was added at its association's request (issue 2) with the association's own track, shared by written permission. - New licence value `stated-permission`, with the quoted words, who gave them, when and where as fields of the record, shown on the trail page and carried in the GPX description. - Tracks from OpenStreetMap or the Forest Service's open trail data for eleven of the new trails and seven existing ones. `tools/osm_track.py` can join several relations and leave ways out by name. - The C&O Canal Towpath is removed: the rule leaves out canal towpaths. - The Grand Enchantment Trail is recorded as a route by its author, with no track. - Corrections to the Finger Lakes, Ozark Highlands, Eastern Continental and Knobstone records, checked against the pages they cite. - Site: the list pages' own units switch is gone in favour of the header one; the map switch and a swapped length range stay in step with the page. - CHANGELOG.md brought up to date from the site's opening to today. 204 trails: 147 official trails and 57 routes; 126 have a track. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
c11a72a7dd
commit
d34a9617cd
127 files changed
+2612
-358
No files matched your search
+13
-3
@@ -53,7 +53,7 @@
|
||||
if (value === 'km') root.dataset.units = 'km';
|
||||
else delete root.dataset.units;
|
||||
writePref('lh-units', value === 'km' ? 'km' : null);
|
||||
syncRadios('input[name="units"], input[name="units-list"]', value === 'km' ? 'km' : 'mi');
|
||||
syncRadios('input[name="units"]', value === 'km' ? 'km' : 'mi');
|
||||
document.dispatchEvent(new Event('olt:units'));
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
function syncPrefControls() {
|
||||
syncRadios('input[name="theme"]', root.dataset.theme || 'auto');
|
||||
syncRadios('input[name="units"], input[name="units-list"]', milesFirst() ? 'mi' : 'km');
|
||||
syncRadios('input[name="units"]', milesFirst() ? 'mi' : 'km');
|
||||
}
|
||||
|
||||
/* Bring the page back in step with the stored choices, and the switches in
|
||||
@@ -105,7 +105,7 @@
|
||||
document.querySelectorAll('input[name="theme"]').forEach(function (input) {
|
||||
input.addEventListener('change', function () { if (input.checked) setTheme(input.value); });
|
||||
});
|
||||
document.querySelectorAll('input[name="units"], input[name="units-list"]').forEach(function (input) {
|
||||
document.querySelectorAll('input[name="units"]').forEach(function (input) {
|
||||
input.addEventListener('change', function () { if (input.checked) setUnits(input.value); });
|
||||
});
|
||||
darkQuery.addEventListener('change', function () {
|
||||
@@ -1033,6 +1033,9 @@
|
||||
if (base) {
|
||||
switcher = basemapControl();
|
||||
map.addControl(switcher, 'top-left');
|
||||
/* The choice may have changed while the map was loading (another tab,
|
||||
or Back): the change event came before the map was ready to follow it. */
|
||||
applyBasemap();
|
||||
}
|
||||
mapCorners();
|
||||
});
|
||||
@@ -1544,6 +1547,13 @@
|
||||
var v = p.get(name) || '';
|
||||
el[name].value = hasOption(el[name], v) ? v : nearestStep(el[name], stepKm(v));
|
||||
});
|
||||
/* An address that gives them the wrong way round is rewritten by apply()
|
||||
with the shorter one first: the controls say the same. */
|
||||
if (stepKm(el.min.value) > stepKm(el.max.value) && stepKm(el.max.value)) {
|
||||
var low = el.max.value, high = el.min.value;
|
||||
el.min.value = hasOption(el.min, low) ? low : nearestStep(el.min, stepKm(low));
|
||||
el.max.value = hasOption(el.max, high) ? high : nearestStep(el.max, stepKm(high));
|
||||
}
|
||||
if (el.month) {
|
||||
var month = p.get('month') || '';
|
||||
el.month.value = hasOption(el.month, month) ? month : '';
|
||||
|
||||
@@ -1137,8 +1137,6 @@ html:not(.js) .js-only { display: none !important; }
|
||||
}
|
||||
.key li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
|
||||
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
|
||||
.results-units { margin: 0; padding: 0; border: 0; }
|
||||
.seg--small span { min-block-size: 2.75rem; min-inline-size: 2.75rem; }
|
||||
.field__label--sub { margin-block-start: var(--space-2); }
|
||||
|
||||
/* Without JavaScript the list is complete and readable; the controls that need it are hidden. */
|
||||
|
||||
Reference in new issue
Block a user