From 02af3b5d828e929ea2792ccc1320b19936544dff Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 2 Jul 2024 13:54:16 +0200 Subject: [PATCH] diffeent icons for diffeent groups --- src/Components/Map/Layer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Map/Layer.tsx b/src/Components/Map/Layer.tsx index 2d3114d9..189df2d8 100644 --- a/src/Components/Map/Layer.tsx +++ b/src/Components/Map/Layer.tsx @@ -197,7 +197,7 @@ export const Layer = ({ selectPosition && setMarkerClicked(item) }, }} - icon={MarkerIconFactory(markerShape, color1, color2, markerIcon)} key={item.id} position={[latitude, longitude]}> + icon={MarkerIconFactory(markerShape, color1, color2, item.markerIcon ? item.markerIcon : markerIcon)} key={item.id} position={[latitude, longitude]}> { (children && React.Children.toArray(children).some(child => React.isValidElement(child) && child.props.__TYPE === "ItemView") ? React.Children.toArray(children).map((child) =>