diff options
author | Marcin Zelent <marcin@zelent.net> | 2021-07-21 13:41:04 +0200 |
---|---|---|
committer | Marcin Zelent <marcin@zelent.net> | 2021-07-21 13:41:04 +0200 |
commit | efb64f24d6200a39870c0e8966ab4f87e07c93a9 (patch) | |
tree | d133f09844390529ba45d5753405a65e295452f5 /components | |
parent | 5abb92f069fbbc9f93c78bffac8ffd5d40b34ea4 (diff) |
Build-time thumbnail files generationnextjs
Diffstat (limited to 'components')
-rw-r--r-- | components/Map/Map.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 { <> <img style={{ width: 36, height: 36 }} - src={`data:image/jpg;base64,${cluster[0].thumbnail}`} + src={cluster[0].thumbnail} alt="" /> <span className={styles.markerItemCount}>{markerCluster.getChildCount()}</span> @@ -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, }) |