From 97873ffeff2d6d550a8347cd0f1e111c73c5f932 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 24 Feb 2025 14:32:57 +0100 Subject: [PATCH] properly name parameters of MarkerIconFactory --- src/Utils/MarkerIconFactory.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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),