Skip to main content

Class: GeoCirclePathRenderer

Renders arcs along geo circles to a path stream stack.

Constructors

constructor

new GeoCirclePathRenderer(): GeoCirclePathRenderer

Returns

GeoCirclePathRenderer

Methods

render

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

Renders an arc along a geo circle to a path stream stack.

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.
streamStackGeoProjectionPathStreamStackundefinedThe path stream stack to which 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/GeoCirclePathRenderer.ts:26