Class: GeoCirclePatternRenderer
Defined in: src/sdk/components/map/GeoCirclePatternRenderer.ts:9
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
Defined in: src/sdk/components/map/GeoCirclePatternRenderer.ts:27
Renders an arc along a geo circle to a canvas.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
circle | GeoCircle | undefined | The geo circle containing the arc to render. |
startLat | number | undefined | The latitude of the start of the arc, in degrees. |
startLon | number | undefined | The longitude of the start of the arc, in degrees. |
endLat | number | undefined | The latitude of the end of the arc, in degrees. |
endLon | number | undefined | The longitude of the end of the arc, in degrees. |
context | CanvasRenderingContext2D | undefined | The canvas 2D rendering context to which to render. |
streamStack | GeoProjectionPathStreamStack | undefined | The path stream stack to which to render. |
pattern | PathPattern | undefined | The pattern to render. |
continuePath | boolean | false | Whether 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