Abstract Class: MapMultiLineAirspaceRenderer
Defined in: src/sdk/components/map/MapMultiLineAirspaceRenderer.ts:36
An airspace renderer which supports rendering airspace borders as multiple, optionally offset lines.
Extends
Constructors
Constructor
new MapMultiLineAirspaceRenderer():
MapMultiLineAirspaceRenderer
Returns
MapMultiLineAirspaceRenderer
Inherited from
MapAbstractAirspaceRenderer
.constructor
Methods
render()
render(
airspace
,projection
,context
,lod
,stream?
):void
Defined in: src/sdk/components/map/MapAirspaceRenderer.ts:37
Renders an airspace to canvas.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
airspace | LodBoundary | undefined | The airspace to render. |
projection | GeoProjection | undefined | The projection to use when rendering. |
context | CanvasRenderingContext2D | undefined | The canvas rendering context to which to render. |
lod | number | 0 | The LOD to render. Defaults to 0. |
stream? | PathStream | undefined | The 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
renderLines()
abstract
protected
renderLines(shape
,context
,stream?
):void
Defined in: src/sdk/components/map/MapMultiLineAirspaceRenderer.ts:58
Renders a projected airspace shape with one or more lines.
Parameters
Parameter | Type | Description |
---|---|---|
shape | MapMultiLineAirspaceShape | The shape to render. |
context | CanvasRenderingContext2D | The canvas rendering context to which to render. |
stream? | PathStream | The path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context. |
Returns
void
renderShape()
protected
renderShape(shape
,projection
,context
,stream?
):void
Defined in: src/sdk/components/map/MapMultiLineAirspaceRenderer.ts:40
Renders a single contiguous shape within an airspace.
Parameters
Parameter | Type | Description |
---|---|---|
shape | readonly LodBoundaryVector [] | The shape to render. |
projection | GeoProjection | The projection to use when rendering. |
context | CanvasRenderingContext2D | The canvas rendering context to which to render. |
stream? | PathStream | The path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context. |
Returns
void