From c90d4da97a5d2694ee333bab5d24df7a97f06a18 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Wed, 24 Nov 2021 23:40:06 +0100 Subject: [PATCH] frontend: Keep track distance labels aligned to map --- frontend/src/pages/TrackPage/TrackMap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/TrackPage/TrackMap.tsx b/frontend/src/pages/TrackPage/TrackMap.tsx index d06020f..5bd22c2 100644 --- a/frontend/src/pages/TrackPage/TrackMap.tsx +++ b/frontend/src/pages/TrackPage/TrackMap.tsx @@ -63,11 +63,12 @@ export default function TrackMap({ 'text-field': ['number-format', ['get', p], {'min-fraction-digits': 2, 'max-fraction-digits': 2}], 'text-allow-overlap': true, 'text-font': ['Open Sans Bold', 'Arial Unicode MS Regular'], - 'text-size': 12, + 'text-size': 14, 'text-keep-upright': false, 'text-anchor': a, 'text-radial-offset': 1, 'text-rotate': ['get', 'course'], + 'text-rotation-alignment': 'map', }, paint: { 'text-halo-color': 'rgba(255, 255, 255, 1)',