From 2d548ecce0a00e98990a0bfbcb18d4a64f618274 Mon Sep 17 00:00:00 2001 From: FestplattenSchnitzel <45077355+FestplattenSchnitzel@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:20:10 +0100 Subject: [PATCH] Fix incorrect data being show for recorded reporting point (#36) --- .../region-reporting-point-view-map.component.ts | 4 ++-- src/assets/data/region/0.json | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/pages/region/region-reporting-point-view-map/region-reporting-point-view-map.component.ts b/src/app/pages/region/region-reporting-point-view-map/region-reporting-point-view-map.component.ts index fcfcfad..428aa93 100644 --- a/src/app/pages/region/region-reporting-point-view-map/region-reporting-point-view-map.component.ts +++ b/src/app/pages/region/region-reporting-point-view-map/region-reporting-point-view-map.component.ts @@ -87,8 +87,8 @@ export class RegionReportingPointViewMapComponent implements OnInit, OnChanges { found = true; const point = feature.getGeometry() as Point; popup.setPosition(point.getCoordinates()); - const reporting_point = feature.get('reporting_point'); - const reportingPointRaw = this.markers.find(point => point.reporting_point === reporting_point); + const markerId = feature.getId(); + const reportingPointRaw = this.markers.find(point => point.id === markerId); popupComponent.setInput("reportingPointRaw", reportingPointRaw) }); diff --git a/src/assets/data/region/0.json b/src/assets/data/region/0.json index c801d26..d189730 100644 --- a/src/assets/data/region/0.json +++ b/src/assets/data/region/0.json @@ -230,6 +230,10 @@ "type": "bus", "name": "166" }, + "261": { + "type": "bus", + "name": "261" + }, "333": { "type": "bus", "name": "333"