Skip to content

Commit

Permalink
fix mapicons
Browse files Browse the repository at this point in the history
  • Loading branch information
gregordr committed May 29, 2024
1 parent bdfca5b commit 838fefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Components/Shared/PhotoMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function PhotoMap(
let ic = new Icon({ iconUrl: `${baseURL}/media/thumb_${photo.id}`, iconSize: [iconSize, iconSize] }) as any;
ic._createImg = () => {
const output = document.createElement("div");
const res = <img style={{ height: "inherit", width: "inherit", borderRadius: "50%", objectFit: "cover", borderStyle: "outset" }} src={`http://localhost:4000/media/thumb_${photo.id}`} />;
const res = <img style={{ height: "inherit", width: "inherit", borderRadius: "50%", objectFit: "cover", borderStyle: "outset" }} src={`{baseURL}/media/thumb_${photo.id}`} />;
output.innerHTML = `${renderToStaticMarkup(res)}`;
return output;
};
Expand Down

0 comments on commit 838fefe

Please sign in to comment.