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

@@ -7,8 +7,8 @@ import { useIntl } from "react-intl"
import Body from "@/components/TempDesignSystem/Text/Body"
import Caption from "@/components/TempDesignSystem/Text/Caption"
import HotelMarkerByType from "../../Markers"
import PoiMarker from "../../Markers/Poi"
import ScandicMarker from "../../Markers/Scandic"
import styles from "./poiMapMarkers.module.css"
@@ -19,6 +19,7 @@ export default function PoiMapMarkers({
pointsOfInterest,
onActivePoiChange,
activePoi,
markerInfo,
}: PoiMapMarkersProps) {
const intl = useIntl()
@@ -28,7 +29,10 @@ export default function PoiMapMarkers({
return (
<>
<AdvancedMarker position={coordinates} zIndex={1}>
<ScandicMarker />
<HotelMarkerByType
hotelId={markerInfo.hotelId}
hotelType={markerInfo.hotelType}
/>
</AdvancedMarker>
{pointsOfInterest.map((poi) => (