From 819853ea0508d4e7e389f3882d8193a0e915ac7e Mon Sep 17 00:00:00 2001 From: zdenevuk <zdenko.vuk@ijs.si> Date: Fri, 2 Dec 2022 10:10:59 +0100 Subject: [PATCH] removed setTimeout/interval --- .../simulation-wizard/results-map/results-map.component.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 68ac09b1..945eab1e 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 @@ -641,14 +641,10 @@ export class ResultsMapComponent implements OnChanges { } resetLayersAndButton() { - let timeout = 100; if (this.map != undefined) { this.map.eachLayer((layer) => { if (layer["feature"] != undefined) { - setTimeout(() => { - this.map.removeLayer(layer); - timeout += 50; - }, timeout); + this.map.removeLayer(layer); } }); -- GitLab