properly name parameters of MarkerIconFactory

This commit is contained in:
Ulf Gebhardt 2025-02-24 14:32:57 +01:00
parent 1f7fe1c307
commit 97873ffeff
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -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),