Commit 83df6926 authored by Kevin Linne's avatar Kevin Linne

Fix multiple rendering of tags and pois when using modal

parent bf298271
Pipeline #18429 passed with stages
in 7 minutes and 16 seconds
......@@ -72,7 +72,10 @@ export class MapViewComponent implements AfterViewInit {
modalRef.componentInstance.lat = this.mapRendererService.getContextLat();
modalRef.componentInstance.building = this.mapRendererService.selectedBuilding;
modalRef.componentInstance.level = this.mapRendererService.selectedLevel;
modalRef.result.then(() => {}).catch(() => {}).then(() => this.mapRendererService.drawPois());
modalRef.result.then(() => {}).catch(() => {}).then(() => {
this.mapRendererService.removePois();
this.mapRendererService.drawPois();
});
}
addTag() {
......@@ -81,6 +84,9 @@ export class MapViewComponent implements AfterViewInit {
modalRef.componentInstance.long = this.mapRendererService.getContextLong();
modalRef.componentInstance.lat = this.mapRendererService.getContextLat();
modalRef.componentInstance.level = this.mapRendererService.selectedLevel.level;
modalRef.result.then(() => {}).catch(() => {}).then(() => this.mapRendererService.drawTags());
modalRef.result.then(() => {}).catch(() => {}).then(() => {
this.mapRendererService.removeTags();
this.mapRendererService.drawTags();
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment