Skip to content

Commit

Permalink
Fix incorrect data being show for recorded reporting point (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel authored Nov 20, 2024
1 parent 86c4969 commit 2d548ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down
4 changes: 4 additions & 0 deletions src/assets/data/region/0.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
"type": "bus",
"name": "166"
},
"261": {
"type": "bus",
"name": "261"
},
"333": {
"type": "bus",
"name": "333"
Expand Down

0 comments on commit 2d548ec

Please sign in to comment.