Skip to main content

Class: MapSingleLineAirspaceRenderer

An airspace renderer which renders airspace borders as a single line.

Hierarchy

Constructors

constructor

new MapSingleLineAirspaceRenderer(lineWidth, strokeStyle, dash): MapSingleLineAirspaceRenderer

Constructor.

Parameters

NameTypeDescription
lineWidthnumberThe stroke width of the rendered airspace line.
strokeStylestring | CanvasPattern | CanvasGradientThe stroke style of the rendered airspace line.
dashreadonly number[]The dash of the rendered airspace line.

Returns

MapSingleLineAirspaceRenderer

Overrides

MapAbstractAirspaceRenderer.constructor

Defined in

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

Properties

dash

Readonly dash: readonly number[]

The dash of the rendered airspace line.

Defined in

src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:24


lineWidth

Readonly lineWidth: number

The stroke width of the rendered airspace line.

Defined in

src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:22


strokeStyle

Readonly strokeStyle: string | CanvasPattern | CanvasGradient

The stroke style of the rendered airspace line.

Defined in

src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:23

Methods

render

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

Renders an airspace to canvas.

Parameters

NameTypeDefault 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

Inherited from

MapAbstractAirspaceRenderer.render

Defined in

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


renderShape

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

Renders a single contiguous shape within an airspace.

Parameters

NameTypeDescription
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

Overrides

MapAbstractAirspaceRenderer.renderShape

Defined in

src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:30