Merge pull request #6540 from openlayers/getAccuracyGeometry_type

More precise ol.Geolocation#getAccuracyGeometry return type
This commit is contained in:
Frédéric Junod
2017-03-01 09:51:51 +01:00
committed by GitHub
+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);
}; };