skyview/internal
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
..
assets Fix map centering to use calculated origin 2025-08-24 00:24:45 +02:00
beast Complete multi-source Beast format implementation 2025-08-23 23:51:37 +02:00
client Complete multi-source Beast format implementation 2025-08-23 23:51:37 +02:00
config Initial implementation of SkyView - ADS-B aircraft tracker 2025-08-23 22:09:37 +02:00
merger Complete multi-source Beast format implementation 2025-08-23 23:51:37 +02:00
modes Complete multi-source Beast format implementation 2025-08-23 23:51:37 +02:00
parser Enhance aircraft details display to match dump1090 format 2025-08-23 23:20:31 +02:00
server Fix map centering to use calculated origin 2025-08-24 00:24:45 +02:00