Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix: photo marker badge now renders above circle instead of clipped inside

Maurice3256f5156d2d
diff --git a/client/src/components/Map/MapView.tsx b/client/src/components/Map/MapView.tsx
index 296972c90..a3ff1bb14 100644
--- a/client/src/components/Map/MapView.tsx
+++ b/client/src/components/Map/MapView.tsx
@@ -72,13 +72,17 @@ function createPlaceIcon(place, orderNumbers, isSelected) {
const imgIcon = L.divIcon({
className: '',
html: `<div style="
- width:${size}px;height:${size}px;border-radius:50%;
- border:${borderWidth}px solid ${borderColor};
- box-shadow:${shadow};
- overflow:hidden;background:${bgColor};
+ width:${size}px;height:${size}px;
cursor:pointer;position:relative;
">
- <img src="${place.image_url}" width="${size}" height="${size}" style="display:block;border-radius:50%;object-fit:cover;" />
+ <div style="
+ width:${size}px;height:${size}px;border-radius:50%;
+ border:${borderWidth}px solid ${borderColor};
+ box-shadow:${shadow};
+ overflow:hidden;background:${bgColor};
+ ">
+ <img src="${place.image_url}" width="${size}" height="${size}" style="display:block;border-radius:50%;object-fit:cover;" />
+ </div>
${badgeHtml}
</div>`,
iconSize: [size, size],