feat([2fd88f42]): add dynamic legend to points map view

This commit is contained in:
2026-02-04 13:48:21 +00:00
parent c84531ed70
commit f1a960f524

View File

@@ -84,6 +84,7 @@ const MapDisplay: React.FC<MapDisplayProps> = ({ heatmapData, radiusMultiplier,
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
/>
{viewMode === 'points' ? renderPoints() : renderHeatmap()}
{viewMode === 'points' && <Legend getColor={getColor} maxCount={maxCount} />}
</MapContainer>
);
};