From f836e57c182acad84ed50dfa1fd0c0606710e6a1 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sun, 2 Feb 2025 17:58:48 +0000 Subject: [PATCH] added more marker icons --- src/Components/Map/UtopiaMap.css | 21 +++++++++++++++++++++ src/Utils/MarkerIconFactory.ts | 8 ++++++++ 2 files changed, 29 insertions(+) diff --git a/src/Components/Map/UtopiaMap.css b/src/Components/Map/UtopiaMap.css index 5ab6dc05..a1f1a014 100644 --- a/src/Components/Map/UtopiaMap.css +++ b/src/Components/Map/UtopiaMap.css @@ -134,6 +134,27 @@ left: 4px; width: 24px; } + + .shop-icon { + position: relative; + top: -34px; + left: 4px; + width: 24px; + } + + .plant-icon { + position: relative; + top: -34px; + left: 4px; + width: 24px; + } + + .circle-dot-icon { + position: relative; + top: -36px; + left: 4px; + width: 24px; + } .leaflet-popup-scrolled { overflow-x: hidden; diff --git a/src/Utils/MarkerIconFactory.ts b/src/Utils/MarkerIconFactory.ts index 6de46870..9769dd5f 100644 --- a/src/Utils/MarkerIconFactory.ts +++ b/src/Utils/MarkerIconFactory.ts @@ -61,6 +61,14 @@ const addIcon = (icon: string) => { return '' case 'network': return '' + case 'crosshair': + return '' + case 'shop': + return '' + case 'plant': + return '' + case 'circle-dot': + return '' default: return '' }