Skip to main content

Abstract Class: MapAbstractAirspaceRenderer

Defined in: src/sdk/components/map/MapAirspaceRenderer.ts:35

An abstract implementation of MapAirspaceRenderer.

Extended by​

Implements​

Constructors​

Constructor​

new MapAbstractAirspaceRenderer(): MapAbstractAirspaceRenderer

Returns​

MapAbstractAirspaceRenderer

Methods​

render()​

render(airspace, projection, context, lod, stream?): void

Defined in: src/sdk/components/map/MapAirspaceRenderer.ts:37

Renders an airspace to canvas.

Parameters​

ParameterTypeDefault valueDescription
airspaceLodBoundaryundefinedThe airspace to render.
projectionGeoProjectionundefinedThe projection to use when rendering.
contextCanvasRenderingContext2DundefinedThe canvas rendering context to which to render.
lodnumber0The LOD to render. Defaults to 0.
stream?PathStreamundefinedThe path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context.

Returns​

void

Implementation of​

MapAirspaceRenderer.render


renderShape()​

abstract protected renderShape(shape, projection, context, stream?): void

Defined in: src/sdk/components/map/MapAirspaceRenderer.ts:54

Renders a single contiguous shape within an airspace.

Parameters​

ParameterTypeDescription
shapereadonly LodBoundaryVector[]The shape to render.
projectionGeoProjectionThe projection to use when rendering.
contextCanvasRenderingContext2DThe canvas rendering context to which to render.
stream?PathStreamThe path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context.

Returns​

void