From 588f32a9e427a9a115deafd7eea2e71b01f25c62 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 18 Jun 2022 18:57:23 -0700 Subject: Handle map rotation (fix #962) --- modern/src/map/MapDirection.js | 1 + 1 file changed, 1 insertion(+) (limited to 'modern/src/map') 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', }, }); -- cgit v1.2.3