Commit 837448e1 authored by miki yin's avatar miki yin
Browse files

add static color to compute marker

parent 7e5348cd
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ const POA_OPACITY = 1.0;
const POA_RANGE_OPACITY = 0.05;

const COMPUTE_ICON = 'ion-android-cloud';
const COMPUTE_COLOR_DEFAULT = '#696969';
const COMPUTE_COLOR_DEFAULT = '#0a50f2';
const COMPUTE_OPACITY = 1.0;

const DEFAULT_MAP_STYLE = 'Positron';
@@ -310,13 +310,10 @@ class MapInfo extends Component {
  }

  getComputeColor(compute) {
    var color = undefined;
    if (this.isConnected(compute)) {
      color = this.getZoneColor(this.getComputeZone(compute));
    } else {
      color = DISCONNECTED_COLOR;
    if (!this.isConnected(compute)) {
      return DISCONNECTED_COLOR;
    }
    return color ? color : COMPUTE_COLOR_DEFAULT;
    return COMPUTE_COLOR_DEFAULT;
  }

  // Get connected status