Commit 0e653933 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

fix (orientationform): navigating pages keeps selected structure markers

on map component, selected structure to print have their own marker. Marker persist when map is reloaded from navigating form pages.
parent 1293fd19
Pipeline #15889 passed with stages
in 10 minutes and 5 seconds
...@@ -196,6 +196,7 @@ export class OrientationFormComponent implements OnInit { ...@@ -196,6 +196,7 @@ export class OrientationFormComponent implements OnInit {
} }
this.currentPage--; this.currentPage--;
this.progressStatus -= 100 / this.nbPagesForm; this.progressStatus -= 100 / this.nbPagesForm;
this.setStructuresAndCoord();
this.updatePageValid(); this.updatePageValid();
} }
} }
......
...@@ -141,6 +141,10 @@ export class MapComponent implements OnChanges { ...@@ -141,6 +141,10 @@ export class MapComponent implements OnChanges {
} else if (this.structures) { } else if (this.structures) {
this.map = this.mapService.cleanMap(this.map); this.map = this.mapService.cleanMap(this.map);
this.getStructuresPositions(this.structures); this.getStructuresPositions(this.structures);
this.structuresToPrint.forEach((structure: Structure) => {
this.mapService.setAddedToListMarker(structure._id);
});
} }
} }
......
Supports Markdown
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