mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-06 01:25:33 +00:00
bugfix
This commit is contained in:
parent
5e655fda58
commit
016c7dd385
@ -42,7 +42,7 @@ function App() {
|
|||||||
name='events'
|
name='events'
|
||||||
markerIcon={
|
markerIcon={
|
||||||
{image: "calendar.svg",
|
{image: "calendar.svg",
|
||||||
size: 14
|
size: 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
markerShape='square'
|
markerShape='square'
|
||||||
|
|||||||
@ -38,9 +38,11 @@ const MarkerIconFactory = (
|
|||||||
icon?: MarkerIcon,
|
icon?: MarkerIcon,
|
||||||
assetsURL?: string,
|
assetsURL?: string,
|
||||||
) => {
|
) => {
|
||||||
|
console.log(icon)
|
||||||
|
console.log(assetsURL)
|
||||||
if (icon)
|
if (icon)
|
||||||
return divIcon({
|
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],
|
iconAnchor: [17, 40],
|
||||||
popupAnchor: [0, -40],
|
popupAnchor: [0, -40],
|
||||||
iconSize: new Point(40, 46),
|
iconSize: new Point(40, 46),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user