From ec53859c3f5d36baa9ed0e6271c23ffb8eccffda Mon Sep 17 00:00:00 2001 From: Maxime Bouveron Date: Mon, 8 Apr 2024 10:58:35 +0200 Subject: [PATCH] Add tooltips to contribution markers --- src/components/map/geometry-item.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/map/geometry-item.tsx b/src/components/map/geometry-item.tsx index f34eb67..fa1dbff 100644 --- a/src/components/map/geometry-item.tsx +++ b/src/components/map/geometry-item.tsx @@ -30,16 +30,16 @@ const MetaData = ({ properties: GeoJsonProperties; layer: Layer; }) => { - if (properties === null || !properties.name) { + if (properties === null || (!properties.name && !properties.category)) { return null; } return ( <> - {properties.name} - {layer.type !== undefined && layer.url && ( + {properties.name ?? properties.category} + {layer.type !== undefined && layer.url && properties.id && (