More precise ol.Geolocation#getAccuracyGeometry return type

This commit is contained in:
Frederic Junod
2017-02-27 16:16:47 +01:00
parent 08a251103b
commit c1be62e6c3
+2 -2
View File
@@ -192,12 +192,12 @@ ol.Geolocation.prototype.getAccuracy = function() {
/** /**
* Get a geometry of the position accuracy. * Get a geometry of the position accuracy.
* @return {?ol.geom.Geometry} A geometry of the position accuracy. * @return {?ol.geom.Polygon} A geometry of the position accuracy.
* @observable * @observable
* @api * @api
*/ */
ol.Geolocation.prototype.getAccuracyGeometry = function() { ol.Geolocation.prototype.getAccuracyGeometry = function() {
return /** @type {?ol.geom.Geometry} */ ( return /** @type {?ol.geom.Polygon} */ (
this.get(ol.GeolocationProperty.ACCURACY_GEOMETRY) || null); this.get(ol.GeolocationProperty.ACCURACY_GEOMETRY) || null);
}; };