diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-03 08:25:48 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-03 08:25:48 -0700 |
commit | 7d521e8411dbeb9ca6bbeb98453145b44c7e5913 (patch) | |
tree | 369bb41e7a03d1f4c7a43ab6dafa69526af9101c /modern/src/map/MapRoutePath.js | |
parent | c3b728b2a29d014ec1a4de454f33b47d0e88fa47 (diff) | |
download | trackermap-web-7d521e8411dbeb9ca6bbeb98453145b44c7e5913.tar.gz trackermap-web-7d521e8411dbeb9ca6bbeb98453145b44c7e5913.tar.bz2 trackermap-web-7d521e8411dbeb9ca6bbeb98453145b44c7e5913.zip |
Add geometry color to theme
Diffstat (limited to 'modern/src/map/MapRoutePath.js')
-rw-r--r-- | modern/src/map/MapRoutePath.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modern/src/map/MapRoutePath.js b/modern/src/map/MapRoutePath.js index 9703bf24..c2ef1d8e 100644 --- a/modern/src/map/MapRoutePath.js +++ b/modern/src/map/MapRoutePath.js @@ -1,3 +1,4 @@ +import { useTheme } from '@mui/styles'; import maplibregl from 'maplibre-gl'; import { useEffect } from 'react'; import { useSelector } from 'react-redux'; @@ -6,6 +7,8 @@ import { map } from './core/MapView'; const MapRoutePath = ({ positions }) => { const id = 'replay'; + const theme = useTheme(); + const reportColor = useSelector((state) => { const position = positions.find(() => true); if (position) { @@ -17,7 +20,7 @@ const MapRoutePath = ({ positions }) => { } } } - return '#3bb2d0'; + return theme.palette.colors.geometry; }); useEffect(() => { |