diff options
Diffstat (limited to 'modern/src/map/MapPositions.js')
-rw-r--r-- | modern/src/map/MapPositions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/map/MapPositions.js b/modern/src/map/MapPositions.js index 170a6b11..4b53255a 100644 --- a/modern/src/map/MapPositions.js +++ b/modern/src/map/MapPositions.js @@ -1,11 +1,11 @@ import { useCallback, useEffect } from 'react'; import { useSelector } from 'react-redux'; -import { map } from './core/Map'; +import { map } from './core/MapView'; import { getStatusColor } from '../common/util/formatter'; import usePersistedState from '../common/util/usePersistedState'; -const MapPositions = ({ positions, onClick }) => { +const MapPositions = ({ positions, onClick, showStatus }) => { const id = 'positions'; const clusters = `${id}-clusters`; @@ -20,7 +20,7 @@ const MapPositions = ({ positions, onClick }) => { deviceId: position.deviceId, name: device.name, category: device.category || 'default', - color: getStatusColor(device.status), + color: showStatus ? getStatusColor(device.status) : 'neutral', }; }; |