Merge pull request #2663 from fredj/geolocation-tracking-error

Set tracking property to false on geolocation error
This commit is contained in:
Frédéric Junod
2014-09-02 12:34:23 +02:00

View File

@@ -183,6 +183,7 @@ ol.Geolocation.prototype.positionChange_ = function(position) {
*/
ol.Geolocation.prototype.positionError_ = function(error) {
error.type = goog.events.EventType.ERROR;
this.setTracking(false);
this.dispatchEvent(error);
};