aprs.me/assets/js/map-bundle-entry.js
Graham McIntire 8ddcb8000f
Fix Leaflet library loading race condition and enable Redis-free development
- Fix race condition in map bundle loading by waiting for script to load before initializing map
- Ensure Leaflet is properly exposed as window.L in map bundle
- Add Leaflet availability check in map initialization function
- Disable Exq background jobs in development environment to remove Redis dependency
- Remove invalid TelemetryMetricsPrometheus plug from endpoint
- Application now starts successfully without Redis in development mode

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 12:20:23 -05:00

11 lines
No EOL
335 B
JavaScript

// Map bundle entry point - combines Leaflet and map plugins
import "../vendor/js/leaflet-minimal.js";
import "../vendor/js/plugins-optimized.js";
// Ensure Leaflet is available as window.L (standard convention)
if (window.leaflet && !window.L) {
window.L = window.leaflet;
}
// Mark bundle as loaded
window.mapBundleLoaded = true;