Skip to main content

AQIHeatmap

A heatmap visualization component for displaying Air Quality Index (AQI) data across the map.

πŸ“‹ Overview​

PropertyValue
Filesrc/components/AQIHeatmap.tsx
TypeReact Functional Component
AuthorUIP Team
Version1.0.0

🎯 Purpose​

  • Visualize AQI levels across geographic areas
  • Color-coded heatmap based on AQI values
  • Real-time updates from air quality sensors
  • Interactive legend with AQI scale

πŸš€ Usage​

import { AQIHeatmap } from '@/components/AQIHeatmap';

function MapComponent() {
return (
<MapContainer>
<AQIHeatmap
data={aqiData}
opacity={0.6}
radius={25}
/>
</MapContainer>
);
}

πŸ“¦ Props​

PropTypeRequiredDefaultDescription
dataAQIData[]Yes-AQI data points
opacitynumberNo0.6Heatmap opacity (0-1)
radiusnumberNo25Heatmap point radius
blurnumberNo15Blur radius
visiblebooleanNotrueShow/hide heatmap

🎨 AQI Color Scale​

AQI RangeLevelColor
0-50Good🟒 Green
51-100Moderate🟑 Yellow
101-150Unhealthy for Sensitive🟠 Orange
151-200UnhealthyπŸ”΄ Red
201-300Very Unhealthy🟣 Purple
300+Hazardous🟀 Maroon

See the complete components reference for all available components.