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"