Merge pull request 'feat: Comprehensive 3D radar enhancements with trails, labels, and visual differentiation - resolves #41' (#44) from feature/3d-radar-enhancements-issue-41 into main

Reviewed-on: #44
This commit is contained in:
Ole-Morten Duesund 2025-09-02 19:31:01 +02:00
commit ec86ec6829
3 changed files with 929 additions and 38 deletions

View file

@ -413,6 +413,7 @@
<div class="radar3d-controls">
<button id="radar3d-reset" disabled>Reset View</button>
<button id="radar3d-auto-rotate" disabled>Auto Rotate</button>
<button id="radar3d-trails" disabled>Show Trails</button>
<label>
<input type="range" id="radar3d-range" min="10" max="500" value="100" disabled>
Range: <span id="radar3d-range-value">100</span> km

File diff suppressed because it is too large Load diff

View file

@ -227,10 +227,11 @@ type SourceData struct {
// PositionPoint represents a timestamped position update in aircraft history.
// Used to build position trails for visualization and track analysis.
type PositionPoint struct {
Time time.Time `json:"time"` // Timestamp when position was received
Latitude float64 `json:"lat"` // Latitude in decimal degrees
Longitude float64 `json:"lon"` // Longitude in decimal degrees
Source string `json:"source"` // Source that provided this position
Time time.Time `json:"time"` // Timestamp when position was received
Latitude float64 `json:"lat"` // Latitude in decimal degrees
Longitude float64 `json:"lon"` // Longitude in decimal degrees
Altitude int `json:"altitude"` // Altitude in feet (0 if unknown)
Source string `json:"source"` // Source that provided this position
}
// SignalPoint represents a timestamped signal strength measurement.
@ -655,6 +656,7 @@ func (m *Merger) updateHistories(state *AircraftState, aircraft *modes.Aircraft,
Time: timestamp,
Latitude: aircraft.Latitude,
Longitude: aircraft.Longitude,
Altitude: aircraft.Altitude, // Include altitude in position history
Source: sourceID,
})
}