Dashboard overlay (Overlays → Live → Dashboard): one inclinometer (compass ring, roll and pitch), speed, the speed limit with an over-limit warning and, on the route, the next limit change, traffic signal, maneuver and its lanes; /api/route gains speed_limits, signals and lanes, POST /api/road gives the driven road's limit; GNSS simulation (random trips over Valhalla) for trying it without the car; the HMC5883L heading in can.json
CI / check (push) Successful in 24s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-30 18:30:21 +01:00
1 parent 5958ffd153
commit 190a8ad334
13 files changed
+713 -27

No files matched your search

+3 -1
View File
@@ -8,6 +8,7 @@ import { ContourControl } from "/js/contour.js";
import { HikingTrailsControl } from "/js/hiking_trails.js";
import { TrackerControl, ItsControl } from "/js/live.js";
import { NpsControl } from "/js/nps.js";
import { DashboardControl } from "/js/dashboard.js";
const ICON_IMAGE_SIZE = 48; // rasterized once at this size, rendered much smaller by icon-size below
const ICON_SIZE = 0.3; // 48 * 0.3 = ~14px, sized to sit inside the marker badge below
@@ -199,6 +200,7 @@ export class OverlaysControl {
this._tracker = new TrackerControl(map);
this._its = new ItsControl(map);
this._nps = new NpsControl(map);
this._dashboard = new DashboardControl(map);
this._wikiEnabled = false; // the checkbox's own state
this._wikiMoveHandler = null; // the moveend listener driving its live refetch, while enabled
this._wikiRequestSeq = 0; // ignores an in-flight refetch a newer one has already superseded
@@ -230,7 +232,7 @@ export class OverlaysControl {
["Terrain", [[(li) => this._hillshade.mount(li)], [(li) => this._shadow.mount(li), true], [(li) => this._contour.mount(li)]]],
["Weather", [[(li) => this._radar.mount(li), true]]],
["Places & trails", [[(li) => this._hikingTrails.mount(li), true], [(li) => this._mountWiki(li)], [(li) => this._nps.mount(li)]]],
["Live", [[(li) => this._tracker.mount(li)], [(li) => this._its.mount(li)]]],
["Live", [[(li) => this._tracker.mount(li)], [(li) => this._its.mount(li)], [(li) => this._dashboard.mount(li), true]]],
];
const list = this._panel.querySelector(".overlays-panel__list");
list.innerHTML = "";