fix(traffic): recover road loading after city navigation

This commit is contained in:
Sameh Khamis committed 2026-09-13 14:47:26 -07:00
1 parent ee03bfb8a8
commit 0732f8f95c
12 files changed
+425 -11

No files matched your search

+6
View File
@@ -32,6 +32,7 @@ export function createState({ services }) {
/** @type {Function|null} Disposer returned by camera.changed event subscription */
layerState._cameraRemover = null;
layerState._arrivalRemover = null;
/** @type {ReturnType<typeof setTimeout>|null} Debounce timer for camera-change fetch */
@@ -215,6 +216,11 @@ export function createState({ services }) {
/** @type {ReturnType<typeof setInterval>|null} Enable-time retry until the first load commits. */
layerState._enableKickTimer = null;
// Failed destinations retry while parked, with a bounded backoff.
layerState._retryTimer = null;
layerState._retryDelayMs = 1500;
layerState._retryBoundsKey = null;
layerState._roadError = null;
/** @type {number} 0–100 int — matched roads / roads with any flow candidates */