Better docs for ol.geom.Polygon#createCircularSphere

This commit is contained in:
Éric Lemoine
2014-09-17 18:21:59 +02:00
parent 122b535393
commit d85d34f3dd
2 changed files with 7 additions and 5 deletions

View File

@@ -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.circular(
var geometry = ol.geom.Polygon.createCircularOnSphere(
ol.sphere.WGS84, this.position_, coords.accuracy);
geometry.applyTransform(this.transform_);
this.set(ol.GeolocationProperty.ACCURACY_GEOMETRY, geometry);