Skip to main content

Class: FlightPathRenderStyle

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:115

A vector line rendering style to apply to a flight path display on the map.

Constructors

Constructor

new FlightPathRenderStyle(isDisplayed): FlightPathRenderStyle

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:121

Creates an instance of a FlightPathRenderStyle.

Parameters

ParameterTypeDefault valueDescription
isDisplayedbooleantrueWhether or not the path is displayed.

Returns

FlightPathRenderStyle

Properties

dash?

optional dash: number[]

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:130

A dash-array configuration for the line, if any.


isDisplayed

isDisplayed: boolean = true

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:121

Whether or not the path is displayed.


lineCap?

optional lineCap: CanvasLineCap

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:139

The line cap style to use. Defaults to 'butt'.


outlineStyle?

optional outlineStyle: string

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:136

The style of the outline. Defaults to 'black'.


outlineWidth?

optional outlineWidth: number

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:133

The width of the outline, in pixels. Defaults to 0 pixels.


partsToRender?

optional partsToRender: FlightPathLegRenderPart

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:142

An optional override of which parts to render for the leg.


style

style: string = ''

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:127

The style string for the line.


width

width: number = 2

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:124

The pixel width of the path line.


Default

readonly static Default: FlightPathRenderStyle

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:145

The default rendering style.


Hidden

readonly static Hidden: FlightPathRenderStyle

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:148

A style that does not display the path.