From 4969c2cf34cacb67b2afc9ff6ef9966b6eab4ae5 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 2 Sep 2014 11:13:06 +0200 Subject: [PATCH] Set tracking property to false on geolocation error --- src/ol/geolocation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/geolocation.js b/src/ol/geolocation.js index ce0ce45f5f..f9c1f87c26 100644 --- a/src/ol/geolocation.js +++ b/src/ol/geolocation.js @@ -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); };