H1: Map tab broken — map variable undefined, Leaflet never initializes #31

Closed
opened 2026-05-22 01:46:04 +00:00 by shawn · 0 comments
Owner

Severity: High

Switching to the Map tab throws ReferenceError: map is not defined.

Root cause: let map = null; was never declared and no L.map init exists.

Fix applied: Added global decl + Leaflet init in switchTab(tabMap).

**Severity:** High Switching to the Map tab throws `ReferenceError: map is not defined`. **Root cause:** `let map = null;` was never declared and no L.map init exists. **Fix applied:** Added global decl + Leaflet init in switchTab(tabMap).
shawn closed this issue 2026-05-22 01:47:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-asset-tracker#31