From 6b2a703b35ffce3506765dcfdc4ee018e2645183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 23 Sep 2014 09:43:13 +0200 Subject: [PATCH] Use ol.geom.Polygon.circular in ol.Geolocation --- src/ol/geolocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/geolocation.js b/src/ol/geolocation.js index 8ccd4fb09b..d5cf49ac84 100644 --- a/src/ol/geolocation.js +++ b/src/ol/geolocation.js @@ -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);