diff --git a/web/components/visualization/results-zone.js b/web/components/visualization/results-zone.js index c4fd371706d7ec8543f865d2c7f4f3bfa933edab..05be9f432691ce8b4760ea12ff060ec5713b3f62 100644 --- a/web/components/visualization/results-zone.js +++ b/web/components/visualization/results-zone.js @@ -138,6 +138,9 @@ class ResultZoneComponent { let resultHandler = this; document.getElementById("map-section").parentElement.className = "column is-full"; + console.log(this.ResultsMap); + if (this.parent.zone === "areas") this.ResultsMap.displayMapAreas(); + else this.ResultsMap.displayMapSections(); document.getElementById("zoom-map").addEventListener("click", function () { resultHandler.unZoom(); }); @@ -217,6 +220,9 @@ class ResultZoneComponent { <i class="fa fa-expand-arrows-alt"></i> </span>`; + if (this.parent.zone === "areas") this.ResultsMap.displayMapAreas(); + else this.ResultsMap.displayMapSections(); + this.handleDom(); } @@ -225,7 +231,6 @@ class ResultZoneComponent { if (this.parent.zone === "areas") { await this.ResultsFlow.displayFlowAreas(); this.ResultsDetaileds.displayAreasResults(); - } else if (this.parent.zone === "sections") { await this.ResultsFlow.displayFlowSections(); this.ResultsDetaileds.displaySectionsResults();