feat([2fd88f42]): display attributes in point tooltip

This commit is contained in:
2026-02-04 13:22:47 +00:00
parent 66438fd6d0
commit 2c05412dfb
3 changed files with 56 additions and 6 deletions

View File

@@ -43,6 +43,11 @@ const MapDisplay: React.FC<MapDisplayProps> = ({ heatmapData, radiusMultiplier,
<Tooltip>
PLZ: {point.plz} <br />
Count: {point.count}
{point.attributes_summary && Object.entries(point.attributes_summary).map(([attr, values]) => (
<div key={attr}>
<strong>{attr}:</strong> {values.join(', ')}
</div>
))}
</Tooltip>
</CircleMarker>
))