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 68ac09b17d33fd0a92087d26167d7d682d355158..945eab1eae8e0c4c7dd4b6b64454f9bd3eb611fb 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); } });