aprs.me/assets/js/types
Graham McIntire 15f3e8fcfe
Fix JavaScript error when navigating from map to weather page
Fixed "can't access property 'invalidateSize', e.map is undefined" error
that occurred when navigating away from the map page while a setTimeout
was still trying to access the destroyed map.

Changes:
- Added check for self.map and self.isDestroyed before invalidating map size
- Stored timeout references in a cleanupTimeouts array
- Added cleanup code in destroyed() function to clear all pending timeouts
- Updated TypeScript type definition to include cleanupTimeouts property

This prevents attempting to access the map object after it has been
destroyed during page navigation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-20 08:19:51 -05:00
..
chart-types.d.ts Replace any types with specific TypeScript types 2025-07-17 17:55:27 -05:00
events.d.ts Replace any types with specific TypeScript types 2025-07-17 17:55:27 -05:00
leaflet-events.d.ts Replace any types with specific TypeScript types 2025-07-17 17:55:27 -05:00
leaflet-plugins.d.ts Replace any types with specific TypeScript types 2025-07-17 17:55:27 -05:00
leaflet.d.ts Replace any types with specific TypeScript types 2025-07-17 17:55:27 -05:00
map.d.ts Fix JavaScript error when navigating from map to weather page 2025-07-20 08:19:51 -05:00
marker-extensions.d.ts Replace any types with specific TypeScript types 2025-07-17 17:55:27 -05:00