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 && (