Skip to main content

Class: FlightPathVectorPatternRenderer

Defined in: src/sdk/components/map/FlightPathVectorPatternRenderer.ts:10

Renders flight path vectors as repeating patterns.

Constructors

Constructor

new FlightPathVectorPatternRenderer(): FlightPathVectorPatternRenderer

Returns

FlightPathVectorPatternRenderer

Methods

render()

render(vector, context, streamStack, pattern, continuePath): void

Defined in: src/sdk/components/map/FlightPathVectorPatternRenderer.ts:25

Renders a flight path vector to a canvas.

Parameters

ParameterTypeDefault valueDescription
vectorCircleVectorundefinedThe flight path vector to render.
contextCanvasRenderingContext2DundefinedThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackundefinedThe path stream to which to render.
patternPathPatternundefinedThe pattern to render.
continuePathbooleanfalseWhether to continue the previously rendered path. If true, a discontinuity in the rendered path will not be inserted before the vector is rendered. This may lead to undesired artifacts if the previously rendered path does not terminate at the point where the projected vector starts. Defaults to false.

Returns

void