Class: MapSingleLineAirspaceRenderer
Defined in: src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:10
An airspace renderer which renders airspace borders as a single line.
Extends
Constructors
Constructor
new MapSingleLineAirspaceRenderer(
lineWidth
,strokeStyle
,dash
):MapSingleLineAirspaceRenderer
Defined in: src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:21
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
lineWidth | number | The stroke width of the rendered airspace line. |
strokeStyle | string | CanvasPattern | CanvasGradient | The stroke style of the rendered airspace line. |
dash | readonly number [] | The dash of the rendered airspace line. |
Returns
MapSingleLineAirspaceRenderer
Overrides
MapAbstractAirspaceRenderer
.constructor
Properties
dash
readonly
dash: readonlynumber
[]
Defined in: src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:24
The dash of the rendered airspace line.
lineWidth
readonly
lineWidth:number
Defined in: src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:22
The stroke width of the rendered airspace line.
strokeStyle
readonly
strokeStyle:string
|CanvasPattern
|CanvasGradient
Defined in: src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:23
The stroke style of the rendered airspace line.
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
renderShape()
protected
renderShape(shape
,projection
,context
,stream?
):void
Defined in: src/sdk/components/map/MapSingleLineAirspaceRenderer.ts:30
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