Skip to content

Commit

Permalink
Add tooltips to contribution markers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Duke committed Apr 8, 2024
1 parent bc17e89 commit ec53859
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/map/geometry-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<Tooltip>{properties.name}</Tooltip>
{layer.type !== undefined && layer.url && (
<Tooltip>{properties.name ?? properties.category}</Tooltip>
{layer.type !== undefined && layer.url && properties.id && (
<LeafletPopup>
<Popup
name={properties.name}
name={properties.name ?? properties.category}
description={properties.description}
attachments={properties.attachments}
type={layer.type}
Expand Down

0 comments on commit ec53859

Please sign in to comment.