- 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> |
||
|---|---|---|
| .. | ||
| features | ||
| hooks | ||
| types | ||
| app.js | ||
| chart-bundle-entry.js | ||
| map-bundle-entry.js | ||
| map.ts | ||
| map_fixes.ts | ||
| map_helpers.ts | ||
| topbar.js | ||
| vendor.js | ||