diff options
Diffstat (limited to 'modern/src/map/MapDirection.js')
-rw-r--r-- | modern/src/map/MapDirection.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modern/src/map/MapDirection.js b/modern/src/map/MapDirection.js index 736d7166..7897cda7 100644 --- a/modern/src/map/MapDirection.js +++ b/modern/src/map/MapDirection.js @@ -1,10 +1,13 @@ import { useEffect } from 'react'; +import { useAttributePreference } from '../common/util/preferences'; import { map } from './core/MapView'; const MapDirection = ({ position }) => { const id = 'directions'; + const iconScale = useAttributePreference('iconScale', 1); + useEffect(() => { map.addSource(id, { type: 'geojson', @@ -19,6 +22,7 @@ const MapDirection = ({ position }) => { source: id, layout: { 'icon-image': 'direction', + 'icon-size': iconScale, 'icon-rotate': ['get', 'rotation'], 'icon-rotation-alignment': 'map', }, |