fix: GPS chip visibility and Leaflet Draw geofencing

- Removed hardcoded display:none from GPS center chip on map tab
- Chip now shows when GPS position is obtained in startVisitTracking
- Added leaflet-draw CSS and JS to HTML head
- Added draw control (polygon, rectangle, circle) to map init
- Emits geofenceDrawn custom event for external hooks
This commit is contained in:
2026-05-22 11:50:44 -04:00
parent f9f6d9d5ce
commit 72003e2742
5 changed files with 455 additions and 124 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
// Caches app shell + CDN deps. Network-first for API, cache fallback for static.
// ═══════════════════════════════════════════════════════════════════════════
const CACHE_NAME = 'canteen-v2';
const CACHE_NAME = 'canteen-v3';
// App shell — core resources needed to boot the PWA
const APP_SHELL = [