Skip to main content

CitizenReportMarkers

Map markers component for rendering citizen report locations with type-specific icons.

πŸ“‹ Overview​

PropertyValue
Filesrc/components/CitizenReportMarkers.tsx
TypeReact Functional Component
AuthorUIP Team
Version1.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​

PropTypeRequiredDefaultDescription
reportsCitizenReport[]Yes-Report data
onMarkerClick(report: CitizenReport) => voidNo-Click handler
showPopupsbooleanNotrueEnable popups
filterStatusstring[]No-Filter by status

🎨 Report Type Icons​

TypeIconColor
AccidentπŸš—Red
Congestion🚦Orange
Hazard⚠️Yellow
Roadwork🚧Blue
FloodingπŸ’§Cyan
OtherπŸ“Gray

See the complete components reference for all available components.