mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Migrate air icons to milsymbol.
All NATO icons are now generated by the milsymbol library based on their SIDC.
This commit is contained in:
@@ -13,6 +13,7 @@ class FlightJs(BaseModel):
|
||||
id: UUID
|
||||
blue: bool
|
||||
position: LeafletPoint | None
|
||||
sidc: str
|
||||
|
||||
@staticmethod
|
||||
def for_flight(flight: Flight) -> FlightJs:
|
||||
@@ -23,4 +24,6 @@ class FlightJs(BaseModel):
|
||||
position = None
|
||||
if isinstance(flight.state, InFlight):
|
||||
position = flight.position().latlng()
|
||||
return FlightJs(id=flight.id, blue=flight.blue, position=position)
|
||||
return FlightJs(
|
||||
id=flight.id, blue=flight.blue, position=position, sidc=str(flight.sidc())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user