aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-09 08:50:58 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-09 08:50:58 -0700
commit6c4cf067d9fd5dc8b8232b2b87af7800e806a70a (patch)
treed3a508bc39735ad4553b182e20491f2e525ad063 /modern
parentc99f9becbfca0fec8fa418302e3619cedaba48cd (diff)
downloadtrackermap-web-6c4cf067d9fd5dc8b8232b2b87af7800e806a70a.tar.gz
trackermap-web-6c4cf067d9fd5dc8b8232b2b87af7800e806a70a.tar.bz2
trackermap-web-6c4cf067d9fd5dc8b8232b2b87af7800e806a70a.zip
Add compass back (fix #960)
Diffstat (limited to 'modern')
-rw-r--r--modern/src/map/core/MapView.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/modern/src/map/core/MapView.js b/modern/src/map/core/MapView.js
index ba5a67d6..eea5827a 100644
--- a/modern/src/map/core/MapView.js
+++ b/modern/src/map/core/MapView.js
@@ -52,9 +52,7 @@ const initMap = async () => {
updateReadyValue(true);
};
-map.addControl(new maplibregl.NavigationControl({
- showCompass: false,
-}));
+map.addControl(new maplibregl.NavigationControl());
const switcher = new SwitcherControl(
() => updateReadyValue(false),