Add more airlines and fix edit bugs
This commit is contained in:
@@ -41,7 +41,6 @@ interface RoutesGeoJSON {
|
||||
future: GeoJSON.FeatureCollection<GeoJSON.LineString, RouteFeatureProperties>
|
||||
}
|
||||
|
||||
const logoApiUrl = usePage<SharedProps>().props.logo_api_url
|
||||
|
||||
function greatCircleGeoJSON(from: LngLat, to: LngLat, steps?: number): LngLat[] {
|
||||
const dist = Math.sqrt((to[0] - from[0]) ** 2 + (to[1] - from[1]) ** 2)
|
||||
@@ -108,6 +107,8 @@ function routePopupHTML(historical: Flight[], future: Flight[]): string {
|
||||
}
|
||||
|
||||
const groupByDirection = (list: Flight[]): DirectionGroup[] => {
|
||||
const logoApiUrl = usePage<SharedProps>().props.logo_api_url
|
||||
|
||||
const dirs = new Map<string, DirectionGroup>()
|
||||
list.forEach(f => {
|
||||
const key = `${f.departure_airport.id}-${f.arrival_airport.id}`
|
||||
|
||||
Reference in New Issue
Block a user