skyview/static
Ole-Morten Duesund af9bf8ecac Fix map centering to use calculated origin
Backend Changes:
- Added OriginConfig struct to server package
- Modified NewServer to accept origin configuration
- Added /api/origin endpoint to serve origin data to frontend
- Updated main.go to pass origin configuration to server

Frontend Changes:
- Modified initializeMap() to fetch origin from API before map creation
- Updated initializeCoverageMap() to also use origin data
- Added fallback coordinates in case API request fails
- Maps now center on the calculated origin position instead of hardcoded coordinates

The map now properly centers on the calculated average position of enabled
sources (or manually configured origin), providing a much better user experience
with appropriate regional view.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 00:24:45 +02:00
..
css Enhance aircraft details display to match dump1090 format 2025-08-23 23:20:31 +02:00
js Fix map centering to use calculated origin 2025-08-24 00:24:45 +02:00
aircraft-icon.svg Initial implementation of SkyView - ADS-B aircraft tracker 2025-08-23 22:09:37 +02:00
favicon.ico Fix Chart.js loading and add favicon support 2025-08-23 22:43:25 +02:00
index.html Fix JavaScript errors and implement Three.js 3D radar 2025-08-24 00:03:26 +02:00