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> |
||
|---|---|---|
| .. | ||
| chart-types.d.ts | ||
| events.d.ts | ||
| leaflet-events.d.ts | ||
| leaflet-plugins.d.ts | ||
| leaflet.d.ts | ||
| map.d.ts | ||
| marker-extensions.d.ts | ||