|
@@ -235,7 +235,10 @@ function addTrackColorAttr(tList: Track[], groupNumber: number): Track[] {
|
|
}
|
|
}
|
|
function addSpecialTrackColorAttr(tList: SpecialTag[]): SpecialTag[] {
|
|
function addSpecialTrackColorAttr(tList: SpecialTag[]): SpecialTag[] {
|
|
return tList.map((item) => {
|
|
return tList.map((item) => {
|
|
- item.color = colorMap[item.groupNumber][item.userId] || "green";
|
|
|
|
|
|
+ item.color =
|
|
|
|
+ colorMap[item.groupNumber] && colorMap[item.groupNumber][item.markerId]
|
|
|
|
+ ? colorMap[item.groupNumber][item.markerId]
|
|
|
|
+ : "green";
|
|
return item;
|
|
return item;
|
|
});
|
|
});
|
|
}
|
|
}
|