Skip to content

Commit

Permalink
Fix route points (fix #1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Oct 12, 2024
1 parent 78dcbee commit 2eda381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map/MapRoutePoints.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 2eda381

Please sign in to comment.