Skip to main content

Class: GeoCircleLineRenderer

Renders arcs along geo circles as curved lines.

Constructors

constructor

new GeoCircleLineRenderer(): GeoCircleLineRenderer

Returns

GeoCircleLineRenderer

Methods

render

render(circle, startLat, startLon, endLat, endLon, context, streamStack, width, style, dash?, outlineWidth?, outlineStyle?, lineCap?): 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.
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.
outlineWidthnumber0The width of the outline, in pixels. Defaults to 0 pixels.
outlineStylestring'black'The 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/GeoCircleLineRenderer.ts:29