aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/MapPositions.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-09 11:00:08 -0800
committerAnton Tananaev <anton@traccar.org>2023-03-09 11:00:08 -0800
commitaef4f9bb31cfb0f0b86dc167b679669c80f365d3 (patch)
tree75f895f2538b3e0bedd83fa311c5657b554482c7 /modern/src/map/MapPositions.js
parent14574ba0d0b31aa310b6e550451b0a09aa3560dd (diff)
downloadtrackermap-web-aef4f9bb31cfb0f0b86dc167b679669c80f365d3.tar.gz
trackermap-web-aef4f9bb31cfb0f0b86dc167b679669c80f365d3.tar.bz2
trackermap-web-aef4f9bb31cfb0f0b86dc167b679669c80f365d3.zip
More flexible map markers
Diffstat (limited to 'modern/src/map/MapPositions.js')
-rw-r--r--modern/src/map/MapPositions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/MapPositions.js b/modern/src/map/MapPositions.js
index ec319939..5bff23fb 100644
--- a/modern/src/map/MapPositions.js
+++ b/modern/src/map/MapPositions.js
@@ -15,10 +15,10 @@ const MapPositions = ({ positions, onClick, showStatus, selectedPosition, titleF
const theme = useTheme();
const desktop = useMediaQuery(theme.breakpoints.up('md'));
+ const iconScale = useAttributePreference('iconScale', desktop ? 0.75 : 1);
const devices = useSelector((state) => state.devices.items);
- const iconScale = useAttributePreference('iconScale', desktop ? 0.75 : 1);
const mapCluster = useAttributePreference('mapCluster', true);
const hours12 = usePreference('twelveHourFormat');
const directionType = useAttributePreference('mapDirection', 'selected');