Merge pull request #2739 from elemoine/circular
Revert "Function circular renamed to createCircularOnSphere"
This commit is contained in:
@@ -169,7 +169,7 @@ ol.Geolocation.prototype.positionChange_ = function(position) {
|
||||
this.set(ol.GeolocationProperty.POSITION, projectedPosition);
|
||||
this.set(ol.GeolocationProperty.SPEED,
|
||||
goog.isNull(coords.speed) ? undefined : coords.speed);
|
||||
var geometry = ol.geom.Polygon.createCircularOnSphere(
|
||||
var geometry = ol.geom.Polygon.circular(
|
||||
ol.sphere.WGS84, this.position_, coords.accuracy);
|
||||
geometry.applyTransform(this.transform_);
|
||||
this.set(ol.GeolocationProperty.ACCURACY_GEOMETRY, geometry);
|
||||
|
||||
@@ -359,8 +359,7 @@ ol.geom.Polygon.prototype.setFlatCoordinates =
|
||||
* @return {ol.geom.Polygon} The "circular" polygon.
|
||||
* @api stable
|
||||
*/
|
||||
ol.geom.Polygon.createCircularOnSphere =
|
||||
function(sphere, center, radius, opt_n) {
|
||||
ol.geom.Polygon.circular = function(sphere, center, radius, opt_n) {
|
||||
var n = goog.isDef(opt_n) ? opt_n : 32;
|
||||
/** @type {Array.<number>} */
|
||||
var flatCoordinates = [];
|
||||
|
||||
Reference in New Issue
Block a user