@@ -15,8 +15,20 @@ goog.require('goog.math');
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Class to create objects that can be used with {@link
|
||||
* ol.geom.Polygon.circular}.
|
||||
*
|
||||
* For example to create a sphere whose radius is equal to the semi-major
|
||||
* axis of the WGS84 ellipsoid:
|
||||
*
|
||||
* ```js
|
||||
* var wgs84Sphere= new ol.Sphere(6378137);
|
||||
* ```
|
||||
*
|
||||
* @constructor
|
||||
* @param {number} radius Radius.
|
||||
* @api
|
||||
*/
|
||||
ol.Sphere = function(radius) {
|
||||
|
||||
|
||||
@@ -7,6 +7,5 @@ goog.require('ol.Sphere');
|
||||
* A sphere with radius equal to the semi-major axis of the WGS84 ellipsoid.
|
||||
* @const
|
||||
* @type {ol.Sphere}
|
||||
* @api
|
||||
*/
|
||||
ol.sphere.WGS84 = new ol.Sphere(6378137);
|
||||
|
||||
Reference in New Issue
Block a user