mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
bugfix
This commit is contained in:
parent
5e655fda58
commit
016c7dd385
@ -42,7 +42,7 @@ function App() {
|
||||
name='events'
|
||||
markerIcon={
|
||||
{image: "calendar.svg",
|
||||
size: 14
|
||||
size: 13
|
||||
}
|
||||
}
|
||||
markerShape='square'
|
||||
|
||||
@ -38,9 +38,11 @@ const MarkerIconFactory = (
|
||||
icon?: MarkerIcon,
|
||||
assetsURL?: string,
|
||||
) => {
|
||||
console.log(icon)
|
||||
console.log(assetsURL)
|
||||
if (icon)
|
||||
return divIcon({
|
||||
html: `<div class="svg-container">${createSvg(shape, color1, color2)}<img class="overlay-svg" style="width: ${icon.size ? icon.size : '12.5'}px; filter: invert(1) brightness(2);" src="${assetsURL ?? '' + icon.image}"></div>`,
|
||||
html: `<div class="svg-container">${createSvg(shape, color1, color2)}<img class="overlay-svg" style="width: ${icon.size ? icon.size : '12.5'}px; filter: invert(1) brightness(2);" src="${`${assetsURL ?? ''}` + icon.image}"></div>`,
|
||||
iconAnchor: [17, 40],
|
||||
popupAnchor: [0, -40],
|
||||
iconSize: new Point(40, 46),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user