Returns a new GeoJSON geometry object of type “Polygon” approximating a circle on the surface of a sphere, with the current center, radius and precision. Any arguments are passed to the accessors.
The first generic corresponds to the "this"-context within which the geo circle generator will be invoked.
The second generic corresponds to the type of the Datum which will be passed into the geo circle generator.
Returns the current center accessor, which defaults to a function returning [0, 0].
Sets the circle center to the specified point [longitude, latitude] in degrees, and returns this circle generator.
Center point specified as [longitude, latitude] in degrees.
Sets the circle center to the specified center point accessor function, and returns this circle generator.
An accessor function which will be invoked whenever a circle is generated, being passed any arguments passed to the circle generator. It returns the center point specified as [longitude, latitude] in degrees.
Returns the current precision accessor, which defaults to a function returning 6.
Sets the circle precision to the specified angle in degrees, and returns this circle generator.
Small circles do not follow great arcs and thus the generated polygon is only an approximation. Specifying a smaller precision angle improves the accuracy of the approximate polygon, but also increase the cost to generate and render it.
Precision as specified angle in degrees.
Sets the circle precision to the precision accessor function, and returns this circle generator.
Small circles do not follow great arcs and thus the generated polygon is only an approximation. Specifying a smaller precision angle improves the accuracy of the approximate polygon, but also increase the cost to generate and render it.
An accessor function which will be invoked whenever a circle is generated, being passed any arguments passed to the circle generator. It returns the precision as the specified angle in degrees.
Returns the current radius accessor, which defaults to a function returning 90.
Sets the circle radius to the specified angle in degrees, and returns this circle generator.
Circle radius as the specified angle in degrees.
Sets the circle radius to the specified radius accessor function, and returns this circle generator.
An accessor function which will be invoked whenever a circle is generated, being passed any arguments passed to the circle generator. It returns the radius as the specified angle in degrees.
Generated using TypeDoc
A new circle generator
The first generic corresponds to the "this"-context within which the geo circle generator will be invoked.
The second generic corresponds to the type of the Datum which will be passed into the geo circle generator.