From 8df9d4d3cbd9d5ff318b57033ef8e573896d9bfd Mon Sep 17 00:00:00 2001 From: Matteo V Date: Thu, 23 Sep 2021 18:41:22 +0200 Subject: [PATCH] #7354 fix geolocation heading with ol (#7355) (#7356) --- web/client/map/openlayers/locate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/client/map/openlayers/locate.js b/web/client/map/openlayers/locate.js index e4a384be06..3091025be5 100644 --- a/web/client/map/openlayers/locate.js +++ b/web/client/map/openlayers/locate.js @@ -15,6 +15,7 @@ const defaultOpt = { stopFollowingOnDrag: true, keepCurrentZoomLevel: false, locateOptions: { + speedThreshold: 0.8, // m/s maximumAge: 2000, enableHighAccuracy: true, // heading is only defined if the enableHighAccuracy is set to true timeout: 10000,