Skip to content
Snippets Groups Projects
Commit 819853ea authored by zdenko.vuk@ijs.si's avatar zdenko.vuk@ijs.si
Browse files

removed setTimeout/interval

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