Skip to content
Snippets Groups Projects
Commit 216fc7e9 authored by zdenko.vuk@ijs.si's avatar zdenko.vuk@ijs.si Committed by Benguria Elguezabal, Gorka
Browse files

made some work on geojson not loading.

parent 3d28b782
No related branches found
No related tags found
No related merge requests found
......@@ -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", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment