diff --git a/src/components/Pickup/Map/Leaflet.vue b/src/components/Pickup/Map/Leaflet.vue index f353b498..111dca47 100644 --- a/src/components/Pickup/Map/Leaflet.vue +++ b/src/components/Pickup/Map/Leaflet.vue @@ -213,6 +213,8 @@ export default { this.fitToMarkers(); this.createCenterMarker(); this.addMapEvents(); + + this.selectFirstMarker(); }); }, @@ -362,6 +364,15 @@ export default { getChoiceByMarkerId(id) { return this.data.choices.find((choice) => choice.name === id); }, + + /** + * Select the first marker in the choices list. + */ + selectFirstMarker() { + const firstChoice = this.markers[0]; + + this.selectedMarker = this.selectMarker(firstChoice); + }, }, };