Skip to content
Snippets Groups Projects
Commit e7156f9e authored by Oleksandr Husak's avatar Oleksandr Husak
Browse files

fix prod env

parent 76a8efae
No related branches found
No related tags found
No related merge requests found
......@@ -26,16 +26,29 @@ export const MQTTconfig: IMqttServiceOptions = {
path: '/mqtt'
};
export const MarkerColorMap: { [key: string]: MarkerColor } = {
"ROOT": {"marker": "red", "circle": "#d32f2f"},
"Employee1": {"marker": "green", "circle": "#008632"},
"Employee2": {"marker": "blue", "circle": "#0076EE"},
"Employee3": {"marker": "violet", "circle": "#9700ee"},
"Employee4": {"marker": "yellow", "circle": "#eee600"},
"Default": {"marker": "grey", "circle": "#606060"},
}
export const MarkerColorList: MarkerColor[] = [
{"marker": "red", "color": "#d32f2f"},
{"marker": "green", "color": "#008632"},
{"marker": "blue", "color": "#0076EE"},
{"marker": "violet", "color": "#9700ee"},
{"marker": "yellow", "color": "#eee600"},
{"marker": "grey", "color": "#606060"},
]
interface MarkerColor {
marker: string
circle: string
color: string
}
export function getMarkerConfig(counter: number) {
if (counter < 0) {
counter = 0
}
if (MarkerColorList.length <= counter) {
counter = counter - MarkerColorList.length
}
return MarkerColorList[counter]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment