CitizenReportMarkers
Map markers component for rendering citizen report locations with type-specific icons.
π Overviewβ
| Property | Value |
|---|---|
| File | src/components/CitizenReportMarkers.tsx |
| Type | React Functional Component |
| Author | UIP Team |
| Version | 1.0.0 |
π― Purposeβ
- Render report markers on map
- Type-specific icons and colors
- Status indicators (pending, verified, resolved)
- Interactive popups with report details
π Usageβ
import { CitizenReportMarkers } from '@/components/CitizenReportMarkers';
function MapComponent() {
return (
<MapContainer>
<CitizenReportMarkers
reports={reportList}
onMarkerClick={handleClick}
/>
</MapContainer>
);
}
π¦ Propsβ
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
reports | CitizenReport[] | Yes | - | Report data |
onMarkerClick | (report: CitizenReport) => void | No | - | Click handler |
showPopups | boolean | No | true | Enable popups |
filterStatus | string[] | No | - | Filter by status |
π¨ Report Type Iconsβ
| Type | Icon | Color |
|---|---|---|
| Accident | π | Red |
| Congestion | π¦ | Orange |
| Hazard | β οΈ | Yellow |
| Roadwork | π§ | Blue |
| Flooding | π§ | Cyan |
| Other | π | Gray |
π Related Componentsβ
- CitizenReportMap - Parent map
- AccidentMarkers - Accident markers
See the complete components reference for all available components.