Skip to main content

Class: FlightPathVectorLineRenderer

Renders flight path vectors as a curved line.

Constructors

constructor

new FlightPathVectorLineRenderer(): FlightPathVectorLineRenderer

Returns

FlightPathVectorLineRenderer

Methods

render

render(vector, context, streamStack, width, style, dash?, outlineWidth?, outlineStyle?, lineCap?): void

Renders a flight path vector to a canvas.

Parameters

NameTypeDefault valueDescription
vectorCircleVectorundefinedThe flight path vector to render.
contextCanvasRenderingContext2DundefinedThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackundefinedThe path stream to which to render.
widthnumberundefinedThe width of the rendered line.
stylestringundefinedThe style of the rendered line.
dash?readonly number[]undefinedThe dash array of the rendered line. Defaults to no dash.
outlineWidth?numberundefinedThe width of the outline, in pixels. Defaults to 0 pixels.
outlineStyle?stringundefinedThe style of the outline. Defaults to 'black'.
lineCapCanvasLineCap'butt'The line cap style to use. Defaults to 'butt'.

Returns

void

Defined in

src/sdk/components/map/FlightPathVectorLineRenderer.ts:26