diff --git a/src/Utils/MarkerIconFactory.ts b/src/Utils/MarkerIconFactory.ts index e6936a6f..d0cf7cec 100644 --- a/src/Utils/MarkerIconFactory.ts +++ b/src/Utils/MarkerIconFactory.ts @@ -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)}x`, + html: `${createSvg(shape, markerColor, borderColor)}x`, iconAnchor: [17, 40], popupAnchor: [0, -40], iconSize: new Point(40, 46),