aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-18 18:57:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-18 18:57:23 -0700
commit588f32a9e427a9a115deafd7eea2e71b01f25c62 (patch)
treeff72a6cff81b1cf757ac0ad5a1645f8e6554ccba /modern/src
parent5154c9be13ad1446b09feaaa843e621555ac7581 (diff)
downloadtrackermap-web-588f32a9e427a9a115deafd7eea2e71b01f25c62.tar.gz
trackermap-web-588f32a9e427a9a115deafd7eea2e71b01f25c62.tar.bz2
trackermap-web-588f32a9e427a9a115deafd7eea2e71b01f25c62.zip
Handle map rotation (fix #962)
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/map/MapDirection.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modern/src/map/MapDirection.js b/modern/src/map/MapDirection.js
index 251fa962..736d7166 100644
--- a/modern/src/map/MapDirection.js
+++ b/modern/src/map/MapDirection.js
@@ -20,6 +20,7 @@ const MapDirection = ({ position }) => {
layout: {
'icon-image': 'direction',
'icon-rotate': ['get', 'rotation'],
+ 'icon-rotation-alignment': 'map',
},
});