Merged in feat/SW-2901-hotel-pins (pull request #2206)

feat(SW-2901): add dynamic hotel markers

* feat(SW-2901): add dynamic hotel markers

* fix(SW-2901): update type


Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-05-26 13:56:03 +00:00
parent 7e17e9cf4c
commit cf6c794c59
12 changed files with 79 additions and 25 deletions

View File

@@ -22,6 +22,7 @@ export default function InteractiveMap({
hotelPins,
mapId,
closeButton,
markerInfo,
fitBounds = true,
onTilesLoaded,
onActivePoiChange,
@@ -67,12 +68,13 @@ export default function InteractiveMap({
<div className={styles.mapContainer}>
<Map {...mapOptions} onTilesLoaded={onTilesLoaded}>
{hotelPins && <HotelListingMapContent hotelPins={hotelPins} />}
{pointsOfInterest && (
{pointsOfInterest && markerInfo && (
<PoiMapMarkers
coordinates={coordinates}
pointsOfInterest={pointsOfInterest}
onActivePoiChange={onActivePoiChange}
activePoi={activePoi}
markerInfo={markerInfo}
/>
)}
</Map>