Skip to main content

Class: GeoCirclePatternRenderer

Renders arcs along geo circles as repeating patterns.

Constructors

constructor

new GeoCirclePatternRenderer(): GeoCirclePatternRenderer

Returns

GeoCirclePatternRenderer

Methods

render

render(circle, startLat, startLon, endLat, endLon, context, streamStack, pattern, continuePath?): void

Renders an arc along a geo circle to a canvas.

Parameters

NameTypeDefault valueDescription
circleGeoCircleundefinedThe geo circle containing the arc to render.
startLatnumberundefinedThe latitude of the start of the arc, in degrees.
startLonnumberundefinedThe longitude of the start of the arc, in degrees.
endLatnumberundefinedThe latitude of the end of the arc, in degrees.
endLonnumberundefinedThe longitude of the end of the arc, in degrees.
contextCanvasRenderingContext2DundefinedThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackundefinedThe path stream stack 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 arc is rendered. This may lead to undesired artifacts if the previously rendered path does not terminate at the point where the projected arc starts. Defaults to false.

Returns

void

Defined in

src/sdk/components/map/GeoCirclePatternRenderer.ts:27