mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
properly name parameters of MarkerIconFactory
This commit is contained in:
parent
1f7fe1c307
commit
97873ffeff
@ -123,9 +123,14 @@ const addIcon = (icon: string) => {
|
||||
}
|
||||
}
|
||||
|
||||
const MarkerIconFactory = (shape: string, color1: string, color2: string, icon: string) => {
|
||||
const MarkerIconFactory = (
|
||||
shape: string,
|
||||
markerColor: string,
|
||||
borderColor: string,
|
||||
icon: string,
|
||||
) => {
|
||||
return divIcon({
|
||||
html: `${createSvg(shape, color1, color2)}<img class="${shape}-icon"src="${addIcon(icon)}" alt="x" />`,
|
||||
html: `${createSvg(shape, markerColor, borderColor)}<img class="${shape}-icon"src="${addIcon(icon)}" alt="x" />`,
|
||||
iconAnchor: [17, 40],
|
||||
popupAnchor: [0, -40],
|
||||
iconSize: new Point(40, 46),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user