Navigation: rerouting off the route (30 m for 3 fixes, HDOP ≤ 5, every 15 s at most) from the position to the points not reached yet; lanes as SVG arrows, the ones to take bold; dashboard background see-through with a slider; the GNSS simulation starts at a random place in the offline countries, the map jumping there
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-11-30 19:11:07 +01:00
1 parent fbccb2acc9
commit 5f4c7c6ee8
9 files changed
+176 -35

No files matched your search

+12
View File
@@ -123,6 +123,18 @@ export function notifyRouteChanged(route) {
document.dispatchEvent(new CustomEvent(ROUTE_CHANGED_EVENT, { detail: route }));
}
// Off the route while navigating: the route panel routes again from `from`
// ([lon, lat]) to the points not yet reached (`passed` via points skipped).
const REROUTE_EVENT = "route-reroute";
export function requestReroute(from, passed) {
document.dispatchEvent(new CustomEvent(REROUTE_EVENT, { detail: { from, passed } }));
}
export function onReroute(callback) {
document.addEventListener(REROUTE_EVENT, (event) => callback(event.detail));
}
export function onRouteChanged(callback) {
document.addEventListener(ROUTE_CHANGED_EVENT, (event) => callback(event.detail));
return currentRoute;