diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-21 15:27:35 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-21 18:31:07 -0700 |
commit | 1225454024a42697dbb1721685f3066a05f5eac8 (patch) | |
tree | 70ed20abab7a562345154985f5935c42a68b826a /modern/src/map/main/PoiMap.js | |
parent | 4cdda2a42d673a901f39ecf6a24478ec683654a2 (diff) | |
download | trackermap-web-1225454024a42697dbb1721685f3066a05f5eac8.tar.gz trackermap-web-1225454024a42697dbb1721685f3066a05f5eac8.tar.bz2 trackermap-web-1225454024a42697dbb1721685f3066a05f5eac8.zip |
Prefer the style fonts
Diffstat (limited to 'modern/src/map/main/PoiMap.js')
-rw-r--r-- | modern/src/map/main/PoiMap.js | 3 |
1 files changed, 2 insertions, 1 deletions
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: { |