From cdb713f684ba62b65cbbc25ece31de74e0f94826 Mon Sep 17 00:00:00 2001 From: Sam Bao Date: Sun, 24 Nov 2024 14:24:25 -0700 Subject: [PATCH] removed artist clustering because they are doing multicple concerts at the same location --- src/Odyssey/map.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Odyssey/map.js b/src/Odyssey/map.js index 5a87ad5..3bc59c4 100644 --- a/src/Odyssey/map.js +++ b/src/Odyssey/map.js @@ -98,7 +98,12 @@ function Map({ concerts, userLocation, mapStyle }) { setActiveMarker(marker); }; - const markers = concerts.map(concertToMarker); + const rawMarkers = concerts.map(concertToMarker); + + let markers = rawMarkers.filter((item, index, self) => index === self.findIndex((t) => ( t.name === item.name && t.address === item.address ))); + + + const mapStyleId = mapStyle; const handleOnLoad = (map) => { const bounds = new google.maps.LatLngBounds(); // eslint-disable-line