diff --git a/removeme.txt b/removeme.txt deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/app/pages/simulation-wizard/results-map/results-map.component.ts b/src/app/pages/simulation-wizard/results-map/results-map.component.ts index 6f7385d8a3db335021a96d9b4e74d408e9d82cda..8f15832c52c4d9e8a5584f00fd53f66f6b50c81b 100644 --- a/src/app/pages/simulation-wizard/results-map/results-map.component.ts +++ b/src/app/pages/simulation-wizard/results-map/results-map.component.ts @@ -57,15 +57,26 @@ export class ResultsMapComponent { this.geojsonLoading = true; this.simulationService.getGeojson((this.selectedSimulation["id"]).toString()).subscribe( (res) => { - // console.log(res); + if (res["message"] == "Calculating the KPI visualization.") { + this.toastrService.show( + "Server says: Calculating the KPI visualization. GEOJSON loading will not be completed.", + "Warning", + { + status: "danger", + } + ); + this.geojsonLoading = false; + return; + } if (res["message"] == "Please prepare visualizations first.") { this.toastrService.show( "The visualization is not prepared yet, try again in a few minutes.", "Warning", { - status: "warning", + status: "danger", } ); + this.geojsonLoading = false; return; } this.toastrService.show("", "Geojson Loaded", {