From f9b8951f01bc93230d8b202ecc21ef2d3d61b38d Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 1 Jul 2024 17:17:36 +0200 Subject: [PATCH] added group marker icon --- src/Components/Map/UtopiaMap.css | 7 +++++++ src/Utils/MarkerIconFactory.ts | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Components/Map/UtopiaMap.css b/src/Components/Map/UtopiaMap.css index 544339c1..297dc853 100644 --- a/src/Components/Map/UtopiaMap.css +++ b/src/Components/Map/UtopiaMap.css @@ -99,6 +99,13 @@ left: 4px; width: 24px; } + + .group-icon { + position: relative; + top: -37px; + left: 4px; + width: 24px; + } .leaflet-popup-scrolled { overflow-x: hidden; diff --git a/src/Utils/MarkerIconFactory.ts b/src/Utils/MarkerIconFactory.ts index 8d2ae520..4979d4c8 100644 --- a/src/Utils/MarkerIconFactory.ts +++ b/src/Utils/MarkerIconFactory.ts @@ -32,7 +32,9 @@ const addIcon = (icon: string) => { return '' case "compass": return '' - default: + case "group": + return '' + default: return ""; } }