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
Name | Type | Description |
---|---|---|
airspace | LodBoundary | The 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
Name | Type | Description |
---|---|---|
projection | GeoProjection | The projection to use when rendering. |
context | CanvasRenderingContext2D | The canvas rendering context to which to render. |
taskQueueHandler | ThrottledTaskQueueHandler | The handler to assign to the task queue process. |
lod? | number | The LOD to render. Defaults to 0. |
stream? | PathStream | The path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context. |
Returns
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
Name | Type | Description |
---|---|---|
airspace | LodBoundary | The 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
Name | Type | Description |
---|---|---|
airspaces | LodBoundary [] | 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