From 2eda381152f52eb9b58ac9737d9b8a4f8bb1cf3f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 11 Oct 2024 21:33:48 -0700 Subject: [PATCH] Fix route points (fix #1281) --- src/map/MapRoutePoints.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/MapRoutePoints.js b/src/map/MapRoutePoints.js index e561c32830..1da09997f9 100644 --- a/src/map/MapRoutePoints.js +++ b/src/map/MapRoutePoints.js @@ -1,6 +1,7 @@ import { useId, useCallback, useEffect } from 'react'; import { map } from './core/MapView'; import getSpeedColor from '../common/util/colors'; +import { findFonts } from './core/mapUtil'; const MapRoutePoints = ({ positions, onClick }) => { const id = useId(); @@ -32,6 +33,7 @@ const MapRoutePoints = ({ positions, onClick }) => { 'text-color': ['get', 'color'], }, layout: { + 'text-font': findFonts(map), 'text-field': '▲', 'text-allow-overlap': true, 'text-rotate': ['get', 'rotation'],