PollutantCircles
A map component displaying pollutant concentration levels as circular markers.
π Overviewβ
| Property | Value |
|---|---|
| File | src/components/PollutantCircles.tsx |
| Type | React Functional Component |
| Author | UIP Team |
| Version | 1.0.0 |
π― Purposeβ
- Display pollutant levels at monitoring stations
- Color-coded severity indicators
- Show specific pollutant concentrations
- Interactive popups with details
π Usageβ
import { PollutantCircles } from '@/components/PollutantCircles';
function MapComponent() {
return (
<MapContainer>
<PollutantCircles
data={pollutantData}
pollutant="PM2.5"
visible={showPollutants}
/>
</MapContainer>
);
}
π¦ Propsβ
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
data | PollutantData[] | Yes | - | Pollutant readings |
pollutant | 'PM2.5' | 'PM10' | 'NO2' | 'O3' | No | 'PM2.5' | Pollutant type |
visible | boolean | No | true | Show/hide circles |
radius | number | No | 500 | Circle radius (m) |
π¨ Concentration Levelsβ
| Level | Color | PM2.5 (Β΅g/mΒ³) |
|---|---|---|
| Good | π’ Green | 0-12 |
| Moderate | π‘ Yellow | 12-35 |
| Unhealthy Sensitive | π Orange | 35-55 |
| Unhealthy | π΄ Red | 55-150 |
| Very Unhealthy | π£ Purple | 150-250 |
| Hazardous | π€ Maroon | 250+ |
π Related Componentsβ
- AQIHeatmap - AQI heatmap
- WeatherOverlay - Weather layer
- TrafficMap - Map container
See the complete components reference for all available components.