Skip to content

Commit

Permalink
AUS-4295 Removed the unused nvclanid filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jia020 committed Dec 10, 2024
1 parent 1a32d28 commit 2c9f5ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
15 changes: 6 additions & 9 deletions src/app/cesium-map/csmap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,14 @@ export class CsMapComponent implements AfterViewInit {
const nvclanid = UtilitiesService.getUrlParameterByName('nvclanid');
if (nvclanid) {
const me = this;

Check warning on line 186 in src/app/cesium-map/csmap.component.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected aliasing of 'this' to local variable

Check warning on line 186 in src/app/cesium-map/csmap.component.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected aliasing of 'this' to local variable

this.nvclBoreholeAnalyticService.getNVCLGeoJson(nvclanid).subscribe(results => {
if (typeof results === 'object') {
window.alert('This analytical job could not be found!\n the nvclanid = ' + nvclanid);
return;
}
this.nvclBoreholeAnalyticService.getNVCLGeoJson(nvclanid).subscribe(results => {
if (typeof results === 'object') {
window.alert('This analytical job could not be found!\n the nvclanid = ' + nvclanid);
} else {
const jsonData = results;
me.nvclBoreholeAnalyticService.addGeoJsonLayer(nvclanid,jsonData);
});

return;
}
});
}

// This code is used to display the map state stored in a permanent link
Expand Down
10 changes: 0 additions & 10 deletions src/app/menupanel/common/filterpanel/filterpanel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,6 @@ export class FilterPanelComponent implements OnInit, AfterViewInit {
// Add any layer specific advanced filter components
this.advancedComponentService.addAdvancedFilterComponents(this.layer, this.advancedFilterComponents);

// LJ: nvclAnalyticalJob external link
const nvclanid = UtilitiesService.getUrlParameterByName('nvclanid');
if (nvclanid) {
if (this.layer.id === 'nvcl-v2-borehole') {
this.layer.filterCollection['mandatoryFilters'][0].value = nvclanid;
setTimeout(() => {
this.addLayer(this.layer);
});
}
}
}

/**
Expand Down

0 comments on commit 2c9f5ce

Please sign in to comment.