fix: photo marker badge now renders above circle instead of clipped inside
This commit is contained in:
@@ -72,13 +72,17 @@ function createPlaceIcon(place, orderNumbers, isSelected) {
|
|||||||
const imgIcon = L.divIcon({
|
const imgIcon = L.divIcon({
|
||||||
className: '',
|
className: '',
|
||||||
html: `<div style="
|
html: `<div style="
|
||||||
width:${size}px;height:${size}px;border-radius:50%;
|
width:${size}px;height:${size}px;
|
||||||
border:${borderWidth}px solid ${borderColor};
|
|
||||||
box-shadow:${shadow};
|
|
||||||
overflow:hidden;background:${bgColor};
|
|
||||||
cursor:pointer;position:relative;
|
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}
|
${badgeHtml}
|
||||||
</div>`,
|
</div>`,
|
||||||
iconSize: [size, size],
|
iconSize: [size, size],
|
||||||
|
|||||||
Reference in New Issue
Block a user