diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-27 17:08:08 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-27 17:08:08 -0700 |
commit | d257aa2fb592c8def4ff40630914127575b87062 (patch) | |
tree | d55efd2bd145a9565bb4bc0d1f1f336bbf53dd2a /modern/src/map/main | |
parent | 778d626e5ca58f62b75ef070c5c347afa89a6de4 (diff) | |
download | trackermap-web-d257aa2fb592c8def4ff40630914127575b87062.tar.gz trackermap-web-d257aa2fb592c8def4ff40630914127575b87062.tar.bz2 trackermap-web-d257aa2fb592c8def4ff40630914127575b87062.zip |
Streamline theme palette
Diffstat (limited to 'modern/src/map/main')
-rw-r--r-- | modern/src/map/main/MapAccuracy.js | 4 | ||||
-rw-r--r-- | modern/src/map/main/MapLiveRoutes.js | 2 | ||||
-rw-r--r-- | modern/src/map/main/PoiMap.js | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/map/main/MapAccuracy.js b/modern/src/map/main/MapAccuracy.js index cdc706cc..4f025b08 100644 --- a/modern/src/map/main/MapAccuracy.js +++ b/modern/src/map/main/MapAccuracy.js @@ -25,8 +25,8 @@ const MapAccuracy = ({ positions }) => { ['==', '$type', 'Polygon'], ], paint: { - 'fill-color': theme.palette.colors.geometry, - 'fill-outline-color': theme.palette.colors.geometry, + 'fill-color': theme.palette.geometry.main, + 'fill-outline-color': theme.palette.geometry.main, 'fill-opacity': 0.25, }, }); diff --git a/modern/src/map/main/MapLiveRoutes.js b/modern/src/map/main/MapLiveRoutes.js index 049ff9c9..44cdc6ca 100644 --- a/modern/src/map/main/MapLiveRoutes.js +++ b/modern/src/map/main/MapLiveRoutes.js @@ -70,7 +70,7 @@ const MapLiveRoutes = () => { coordinates: history[deviceId], }, properties: { - color: devices[deviceId].attributes['web.reportColor'] || theme.palette.colors.geometry, + color: devices[deviceId].attributes['web.reportColor'] || theme.palette.geometry.main, }, })), }); diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index 0d94ca15..07341183 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -35,7 +35,7 @@ const PoiMap = () => { type: 'circle', paint: { 'circle-radius': 5, - 'circle-color': theme.palette.colors.geometry, + 'circle-color': theme.palette.geometry.main, }, }); map.addLayer({ @@ -43,7 +43,7 @@ const PoiMap = () => { id: 'poi-line', type: 'line', paint: { - 'line-color': theme.palette.colors.geometry, + 'line-color': theme.palette.geometry.main, 'line-width': 2, }, }); |