refactor([2fd88f42]): remove legend component

This commit is contained in:
2026-02-04 14:16:50 +00:00
parent 9e947b6dfb
commit 6d65b782b8
2 changed files with 0 additions and 70 deletions

View File

@@ -6,7 +6,6 @@ import 'leaflet/dist/leaflet.css';
import 'leaflet.heat';
import type { HeatmapPoint, MapMode } from '../App';
import MarkerClusterGroup from 'react-leaflet-cluster';
import Legend from './Legend';
interface MapDisplayProps {
heatmapData: HeatmapPoint[];
@@ -85,7 +84,6 @@ 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>
);
};