diff options
Diffstat (limited to 'modern/src/map/main')
-rw-r--r-- | modern/src/map/main/MapGeofence.js | 4 | ||||
-rw-r--r-- | modern/src/map/main/PoiMap.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modern/src/map/main/MapGeofence.js b/modern/src/map/main/MapGeofence.js index 12eedf7d..3dafa639 100644 --- a/modern/src/map/main/MapGeofence.js +++ b/modern/src/map/main/MapGeofence.js @@ -3,7 +3,7 @@ import { useSelector } from 'react-redux'; import { useTheme } from '@mui/styles'; import { map } from '../core/MapView'; -import { geofenceToFeature } from '../core/mapUtil'; +import { findFonts, geofenceToFeature } from '../core/mapUtil'; const MapGeofence = () => { const id = 'geofences'; @@ -49,7 +49,7 @@ const MapGeofence = () => { type: 'symbol', layout: { 'text-field': '{name}', - 'text-font': ['Roboto Regular'], + 'text-font': findFonts(map), 'text-size': 12, }, paint: { diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index e3364ec2..6215b45e 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -5,6 +5,7 @@ import { useTheme } from '@mui/styles'; import { map } from '../core/MapView'; import { useEffectAsync } from '../../reactHelper'; import { usePreference } from '../../common/util/preferences'; +import { findFonts } from '../core/mapUtil'; const PoiMap = () => { const id = 'poi'; @@ -55,7 +56,7 @@ const PoiMap = () => { 'text-field': '{name}', 'text-anchor': 'bottom', 'text-offset': [0, -0.5], - 'text-font': ['Roboto Regular'], + 'text-font': findFonts(map), 'text-size': 12, }, paint: { |