Set tracking property to false on geolocation error

This commit is contained in:
Frederic Junod
2014-09-02 11:13:06 +02:00
parent bcf5421541
commit 4969c2cf34
+1
View File
@@ -183,6 +183,7 @@ ol.Geolocation.prototype.positionChange_ = function(position) {
*/ */
ol.Geolocation.prototype.positionError_ = function(error) { ol.Geolocation.prototype.positionError_ = function(error) {
error.type = goog.events.EventType.ERROR; error.type = goog.events.EventType.ERROR;
this.setTracking(false);
this.dispatchEvent(error); this.dispatchEvent(error);
}; };