Commit 3a7eaa0d authored by Nikhil Doifode's avatar Nikhil Doifode
Browse files

render compute node on map

parent 85fe7bb9
Loading
Loading
Loading
Loading
+27 −27
Original line number Diff line number Diff line
@@ -864,14 +864,14 @@ class AppContainer extends Component {
  //  * @param {module:model/GeoDataAssetList} data The data returned by the service call.
  //  * @param {String} response The complete HTTP response.
  //  */
  // getComputeAssetDataCb(error, data) {
  //   if (error !== null) {
  //     return;
  //   }
  getComputeAssetDataCb(error, data) {
    if (error !== null) {
      return;
    }

  //   // Update Compute list
  //   this.props.changeMapComputeList(data.geoDataAssets ? _.sortBy(data.geoDataAssets, ['assetName']) : []);
  // }
    // Update Compute list
    this.props.changeMapComputeList(data.geoDataAssets ? _.sortBy(data.geoDataAssets, ['assetName']) : []);
  }

  // Refresh Map
  refreshMap() {
@@ -886,9 +886,9 @@ class AppContainer extends Component {
    this.meepGeoDataApi.getAssetData({ assetType: 'POA' }, (error, data) =>
      this.getPoaAssetDataCb(error, data)
    );
    // this.meepGeoDataApi.getAssetData({assetType: 'COMPUTE'}, (error, data) =>
    //   this.getComputeAssetDataCb(error, data)
    // );
    this.meepGeoDataApi.getAssetData({ assetType: 'COMPUTE' }, (error, data) =>
      this.getComputeAssetDataCb(error, data)
    );
  }

  /**
+2 −2
Original line number Diff line number Diff line
@@ -174,8 +174,8 @@ class MapInfo extends Component {
      'terminal': this.ueOverlay,
      'terminal-path': this.uePathOverlay,
      'poa': this.poaOverlay,
      'poa-coverage': this.poaRangeOverlay
      // 'compute': this.computeOverlay
      'poa-coverage': this.poaRangeOverlay,
	    'compute': this.computeOverlay
    };

    // Create Layer Controller