ui/map/navdata/NavdataRenderer¶
Classes¶
NavdataRenderer¶
Defined in: ui/map/navdata/NavdataRenderer.ts:17
NavdataRenderer - renders the static airports + waypoints overlay from a pre-built PMTiles vector archive (OurAirports data, see script/navdata/). Source-layers: "airports", "heliports", "waypoints", "runways", plus "pavement", "taxiways" and "buildings" when built with an OSM extract. The tiles load themselves, so this only declares the source + layers once and toggles their visibility. A missing archive just produces tile-load errors that MapDisplay already suppresses.
Constructors¶
Constructor¶
Defined in: ui/map/navdata/NavdataRenderer.ts:120
Parameters¶
mapDisplay¶
stateManager¶
Returns¶
Methods¶
minAirportRankForZoom()¶
Defined in: ui/map/navdata/NavdataRenderer.ts:136
Lowest airport rank that is actually revealed at the given zoom, derived from AIRPORT_IMPORTANCE_BY_ZOOM (the same thresholds that drive the importance-opacity expression). Used by NavaidSnapper so snapping only targets airports the user can currently see.
Parameters¶
zoom¶
number
Returns¶
number
initialize()¶
Defined in: ui/map/navdata/NavdataRenderer.ts:162
Returns¶
void
prepareForStyleChange()¶
Defined in: ui/map/navdata/NavdataRenderer.ts:700
Tear down the basemap-attached aeroway layers right before a style swap starts. The persistent 'sourcedata' listener could otherwise re-attach them to a source MapLibre is mid-way through removing (seen on slow connections as "Source ... cannot be removed while layer ... is using it"). Removing the layers upfront and pausing tryAddBasemapAeroway (via styleTransitioning) until the new style loads closes that window.
Returns¶
void
onStyleChange()¶
Defined in: ui/map/navdata/NavdataRenderer.ts:754
Re-add layers after a basemap style change wipes them (mirrors the pattern used by ShapeRenderer / MapOverlay).
Returns¶
void
destroy()¶
Defined in: ui/map/navdata/NavdataRenderer.ts:762
Returns¶
void