Removed old adsb shapes call
This commit is contained in:
@@ -180,7 +180,6 @@ export class AirTrafficLayer {
|
|||||||
private traceSegs: Record<string, Feature[]> = {}
|
private traceSegs: Record<string, Feature[]> = {}
|
||||||
private popups: Record<string, { el: HTMLDivElement, destroy: () => void }> = {}
|
private popups: Record<string, { el: HTMLDivElement, destroy: () => void }> = {}
|
||||||
private historyCache: Record<string, any[]> = {}
|
private historyCache: Record<string, any[]> = {}
|
||||||
private shapes: any = null
|
|
||||||
private data: any[] = []
|
private data: any[] = []
|
||||||
private clickHandler: ((e: any) => void) | null = null
|
private clickHandler: ((e: any) => void) | null = null
|
||||||
private refreshTimer: any = null;
|
private refreshTimer: any = null;
|
||||||
@@ -194,8 +193,6 @@ export class AirTrafficLayer {
|
|||||||
if (this.visible) return
|
if (this.visible) return
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
|
||||||
if (!this.shapes) this.shapes = await fetch(`${API}/vehicles`).then(r => r.json())
|
|
||||||
|
|
||||||
this.layer = new VectorLayer({ source: new VectorSource(), zIndex: 100 })
|
this.layer = new VectorLayer({ source: new VectorSource(), zIndex: 100 })
|
||||||
this.map.addLayer(this.layer)
|
this.map.addLayer(this.layer)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user