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/main/PoiMap.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/main/PoiMap.js')
-rw-r--r-- | modern/src/map/main/PoiMap.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index 3ca344c5..a5185c75 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -1,6 +1,7 @@ import { useEffect, useState } from 'react'; import { kml } from '@tmcw/togeojson'; +import { useTheme } from '@mui/styles'; import { map } from '../core/MapView'; import { useEffectAsync } from '../../reactHelper'; import { usePreference } from '../../common/util/preferences'; @@ -8,6 +9,8 @@ import { usePreference } from '../../common/util/preferences'; const PoiMap = () => { const id = 'poi'; + const theme = useTheme(); + const poiLayer = usePreference('poiLayer'); const [data, setData] = useState(null); @@ -32,7 +35,7 @@ const PoiMap = () => { type: 'circle', paint: { 'circle-radius': 5, - 'circle-color': '#3bb2d0', + 'circle-color': theme.palette.colors.geometry, }, }); map.addLayer({ |