diff --git a/ui/src/components/MapView.js b/ui/src/components/MapView.js
index a4588f4b..ccf4dd0d 100644
--- a/ui/src/components/MapView.js
+++ b/ui/src/components/MapView.js
@@ -64,6 +64,7 @@ const Container = styled('div')`
border-radius: 50%;
box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
background: rgba(255, 255, 255, 0.25);
+ overflow: hidden;
}
`
@@ -120,11 +121,11 @@ const MapView = ({
return null
}
- const getMarkerIcon = (photoThumbnail) => {
- return new L.Icon({
- iconUrl: photoThumbnail,
+ const getMarkerIcon = (photoThumbnail, rotation) => {
+ return new L.divIcon({
iconSize: new L.Point(50, 50),
className: 'leaflet-custom-icon',
+ html: ``,
})
}
@@ -133,7 +134,7 @@ const MapView = ({
photo.location ? (
{
diff --git a/ui/src/containers/BrowseContainer.js b/ui/src/containers/BrowseContainer.js
index 12018d27..12dbdbbe 100644
--- a/ui/src/containers/BrowseContainer.js
+++ b/ui/src/containers/BrowseContainer.js
@@ -309,6 +309,7 @@ const BrowseContainer = (props) => {
id: photo.node.id,
thumbnail: `/thumbnailer/photo/256x256_cover_q50/${photo.node.id}/`,
location: photo.node.location,
+ rotation: photo.node.rotation,
}))
}