Replace google closure syntax = with brackets around name
This commit is contained in:
@@ -27,7 +27,7 @@ export const DEFAULT_RADIUS = 6371008.8;
|
||||
* Get the great circle distance (in meters) between two geographic coordinates.
|
||||
* @param {Array} c1 Starting coordinate.
|
||||
* @param {Array} c2 Ending coordinate.
|
||||
* @param {number=} opt_radius The sphere radius to use. Defaults to the Earth's
|
||||
* @param {number} [opt_radius] The sphere radius to use. Defaults to the Earth's
|
||||
* mean radius using the WGS84 ellipsoid.
|
||||
* @return {number} The great circle distance between the points (in meters).
|
||||
* @api
|
||||
@@ -67,7 +67,7 @@ function getLengthInternal(coordinates, radius) {
|
||||
* the sum of all rings. For points, the length is zero. For multi-part
|
||||
* geometries, the length is the sum of the length of each part.
|
||||
* @param {import("./geom/Geometry.js").default} geometry A geometry.
|
||||
* @param {SphereMetricOptions=} opt_options Options for the
|
||||
* @param {SphereMetricOptions} [opt_options] Options for the
|
||||
* length calculation. By default, geometries are assumed to be in 'EPSG:3857'.
|
||||
* You can change this by providing a `projection` option.
|
||||
* @return {number} The spherical length (in meters).
|
||||
@@ -161,7 +161,7 @@ function getAreaInternal(coordinates, radius) {
|
||||
* Get the spherical area of a geometry. This is the area (in meters) assuming
|
||||
* that polygon edges are segments of great circles on a sphere.
|
||||
* @param {import("./geom/Geometry.js").default} geometry A geometry.
|
||||
* @param {SphereMetricOptions=} opt_options Options for the area
|
||||
* @param {SphereMetricOptions} [opt_options] Options for the area
|
||||
* calculation. By default, geometries are assumed to be in 'EPSG:3857'.
|
||||
* You can change this by providing a `projection` option.
|
||||
* @return {number} The spherical area (in square meters).
|
||||
@@ -225,7 +225,7 @@ export function getArea(geometry, opt_options) {
|
||||
* @param {number} distance The great-circle distance between the origin
|
||||
* point and the target point.
|
||||
* @param {number} bearing The bearing (in radians).
|
||||
* @param {number=} opt_radius The sphere radius to use. Defaults to the Earth's
|
||||
* @param {number} [opt_radius] The sphere radius to use. Defaults to the Earth's
|
||||
* mean radius using the WGS84 ellipsoid.
|
||||
* @return {import("./coordinate.js").Coordinate} The target point.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user