Skip to main content

Interface: MapAirspaceRenderManager

A manager which facilitates the rendering of multiple airspaces.

Methods

clearRegisteredAirspaces

clearRegisteredAirspaces(): boolean

Deregisters all airspaces currently registered with this render manager.

Returns

boolean

Whether any airspaces were deregistered.

Defined in

src/sdk/components/map/MapAirspaceRenderManager.ts:41


deregisterAirspace

deregisterAirspace(airspace): boolean

Deregisters an airspace with this render manager.

Parameters

NameTypeDescription
airspaceLodBoundaryThe airspace to deregister.

Returns

boolean

Whether the airspace was successfully deregistered.

Defined in

src/sdk/components/map/MapAirspaceRenderManager.ts:28


getRegisteredAirspaces

getRegisteredAirspaces(): readonly LodBoundary[]

Gets all airspaces registered to this render manager.

Returns

readonly LodBoundary[]

All airspaces registered to this render manager.

Defined in

src/sdk/components/map/MapAirspaceRenderManager.ts:14


prepareRenderProcess

prepareRenderProcess(projection, context, taskQueueHandler, lod?, stream?): ThrottledTaskQueueProcess

Generates a throttled task queue process, which when started will render all the airspaces registered with this manager.

Parameters

NameTypeDescription
projectionGeoProjectionThe projection to use when rendering.
contextCanvasRenderingContext2DThe canvas rendering context to which to render.
taskQueueHandlerThrottledTaskQueueHandlerThe handler to assign to the task queue process.
lod?numberThe LOD to render. Defaults to 0.
stream?PathStreamThe path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context.

Returns

ThrottledTaskQueueProcess

A throttled task queue process.

Defined in

src/sdk/components/map/MapAirspaceRenderManager.ts:54


registerAirspace

registerAirspace(airspace): boolean

Registers an airspace with this render manager. An airspace may only be registered once.

Parameters

NameTypeDescription
airspaceLodBoundaryThe airspace to register.

Returns

boolean

Whether the airspace was successfully registered.

Defined in

src/sdk/components/map/MapAirspaceRenderManager.ts:21


replaceRegisteredAirspaces

replaceRegisteredAirspaces(airspaces): boolean

Replace all airspaces currently registered with this render manager with a new list of airspaces.

Parameters

NameTypeDescription
airspacesLodBoundary[]The new list of airspaces.

Returns

boolean

Whether the replace operation changed the set of registered airspaces.

Defined in

src/sdk/components/map/MapAirspaceRenderManager.ts:35