diff --git a/src/app/form/orientation-form/orientation-form.component.ts b/src/app/form/orientation-form/orientation-form.component.ts index c5c8c8d3562083826a72078a42c2bd9216b460a6..a76082df793cdbf61c3d03a9ba1fe18943dd1521 100644 --- a/src/app/form/orientation-form/orientation-form.component.ts +++ b/src/app/form/orientation-form/orientation-form.component.ts @@ -196,6 +196,7 @@ export class OrientationFormComponent implements OnInit { } this.currentPage--; this.progressStatus -= 100 / this.nbPagesForm; + this.setStructuresAndCoord(); this.updatePageValid(); } } diff --git a/src/app/map/components/map.component.ts b/src/app/map/components/map.component.ts index e432b027e8bab619bbd1aea9443f5e2eacb9a7be..d3871abcfaf3293dfc5e1e6030895ad3920d1969 100644 --- a/src/app/map/components/map.component.ts +++ b/src/app/map/components/map.component.ts @@ -141,6 +141,10 @@ export class MapComponent implements OnChanges { } else if (this.structures) { this.map = this.mapService.cleanMap(this.map); this.getStructuresPositions(this.structures); + this.structuresToPrint.forEach((structure: Structure) => { + this.mapService.setAddedToListMarker(structure._id); + }); + } }