feat: add StopsMap and WalkingDirections components for enhanced map functionality
- Implemented StopsMap component to display bus stops on a map using MapLibre GL. - Integrated walking directions feature in WalkingDirections component to calculate routes from user location to selected bus stop. - Added geo utility functions for coordinate validation and distance calculation. - Created route grouping and stop filtering logic in routeGroups module. - Developed custom hooks for managing stop routes with React Query. - Added tests for routing and stop functionalities to ensure reliability.
This commit is contained in:
@@ -27,6 +27,8 @@ export default defineConfig({
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,woff2,png,svg,webmanifest}'],
|
||||
// The map is online-only and loads on demand; keep the offline shell small.
|
||||
globIgnores: ['**/StopsMap-*', '**/maplibre-gl-worker-*'],
|
||||
navigateFallbackDenylist: [/^\/api\//],
|
||||
// API snapshots are kept in IndexedDB, keyed by city and stop.
|
||||
// The service worker only caches the application shell.
|
||||
|
||||
Reference in New Issue
Block a user