aprs.me/assets/js
Graham McIntire 0b1e0b85f0
Fix map loading error with dynamic vendor bundles
- Fixed "Leaflet library failed to load" error by deferring window.L access
- Changed map.ts to access window.L dynamically instead of at module load time
- Added const L = window.L; inside functions that use Leaflet
- This allows the vendor bundle to load asynchronously before map initialization

The issue was that the TypeScript module was trying to access window.L
immediately when imported, before the vendor bundle had loaded Leaflet.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-25 14:25:05 -05:00
..
features Fix Docker build JavaScript import errors with vendor bundle 2025-07-21 12:32:39 -05:00
hooks cleanup 2025-07-18 14:44:52 -05:00
types try vector tiles 2025-07-24 10:54:31 -05:00
app.js Implement advanced JavaScript optimization with conditional loading 2025-07-25 14:05:18 -05:00
chart-bundle-entry.js Implement advanced JavaScript optimization with conditional loading 2025-07-25 14:05:18 -05:00
map-bundle-entry.js Implement advanced JavaScript optimization with conditional loading 2025-07-25 14:05:18 -05:00
map.ts Fix map loading error with dynamic vendor bundles 2025-07-25 14:25:05 -05:00
map_fixes.ts Remove debug console.log statements from JavaScript files 2025-07-18 15:37:05 -05:00
map_helpers.ts Improve type safety for getTrailId function 2025-07-21 08:36:38 -05:00
topbar.js js tweak 2025-07-05 13:16:37 -05:00
vendor.js try vector tiles 2025-07-24 10:54:31 -05:00