From d2cf8434cfeb8d9839d34be8a2026b442c02271e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 16 Feb 2026 22:46:58 +0200 Subject: [PATCH] chore(collections/map): make icon inside marker bigger --- apps/client/src/widgets/collections/geomap/Markers.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/collections/geomap/Markers.tsx b/apps/client/src/widgets/collections/geomap/Markers.tsx index 738a1de683..f5dcf82cc5 100644 --- a/apps/client/src/widgets/collections/geomap/Markers.tsx +++ b/apps/client/src/widgets/collections/geomap/Markers.tsx @@ -23,6 +23,10 @@ const LABEL_LAYOUT: Extract["layout"] = { "text-allow-overlap": true, }; +const MARKER_WIDTH = 25; +const MARKER_ICON_SIZE = 20; +const MARKER_ICON_X = (MARKER_WIDTH / 2) - (MARKER_ICON_SIZE / 2); + export default function Markers({ note, hideLabels }: { note: FNote, hideLabels: boolean }) { const map = useContext(ParentMap); const childNotes = useChildNotes(note?.noteId); @@ -130,16 +134,16 @@ export default function Markers({ note, hideLabels }: { note: FNote, hideLabels: //#region Renderer async function buildMarkerIcon(color: string, iconClass: string, scale = window.devicePixelRatio || 1) { - const iconUrl = iconClassToBitmapCache.get(iconClass) ?? await snapshotIcon(iconClass, 16 * scale); + const iconUrl = iconClassToBitmapCache.get(iconClass) ?? await snapshotIcon(iconClass, MARKER_ICON_SIZE * scale); return `\ - + - + `; }