From efb64f24d6200a39870c0e8966ab4f87e07c93a9 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Wed, 21 Jul 2021 13:41:04 +0200 Subject: Build-time thumbnail files generation --- components/Map/Map.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/Map/Map.tsx b/components/Map/Map.tsx index 44f8ea6..8ecde47 100644 --- a/components/Map/Map.tsx +++ b/components/Map/Map.tsx @@ -55,7 +55,7 @@ export default function Map({ trip, handleMarkerClick }: Props): JSX.Element { <> {markerCluster.getChildCount()} @@ -77,7 +77,7 @@ export default function Map({ trip, handleMarkerClick }: Props): JSX.Element { position={[photo.latitude, photo.longitude]} icon={ new Icon({ - iconUrl: `data:image/jpg;base64,${photo.thumbnail}`, + iconUrl: photo.thumbnail, iconSize: [36, 36], className: styles.markerIcon, }) -- cgit v1.2.3