fix(SW-1168) Show only hotel cards that are visible on map
This commit is contained in:
@@ -19,6 +19,7 @@ export default function InteractiveMap({
|
||||
hotelPins,
|
||||
mapId,
|
||||
closeButton,
|
||||
onMapLoad,
|
||||
onActivePoiChange,
|
||||
}: InteractiveMapProps) {
|
||||
const intl = useIntl()
|
||||
@@ -47,7 +48,7 @@ export default function InteractiveMap({
|
||||
|
||||
return (
|
||||
<div className={styles.mapContainer}>
|
||||
<Map {...mapOptions}>
|
||||
<Map {...mapOptions} onTilesLoaded={onMapLoad}>
|
||||
{hotelPins && <HotelListingMapContent hotelPins={hotelPins} />}
|
||||
{pointsOfInterest && (
|
||||
<HotelMapContent
|
||||
|
||||
Reference in New Issue
Block a user