This is a React application that displays a responsive, interactive map using Leaflet and Material UI for styling. The map shows polling places in St. Louis County, with custom markers representing voter counts based on data fetched from a GeoJSON API.
- Features
- Technologies Used
- Getting Started
- Folder Structure
- How It Works
- Deployment
- Contributing
- License
- Interactive map centered on St. Louis County, MO
- Displays polling places with color-coded markers:
- Green: Low voter count (< 25)
- Yellow: Medium voter count (25 - 49)
- Red: High voter count (>= 50)
- Custom popups with polling place details, including a link to Google Maps
- Responsive design using Material UI, ensuring the map adapts to different screen sizes
- React: Frontend framework
- Leaflet: For mapping functionality
- Material UI: For responsive UI design
- JavaScript (ES6): Main programming language
- GeoJSON: Data format for fetching and displaying geographical data
Ensure you have the following installed:
- Clone the repository:
git clone <repository-url> cd <repository-directory>
- Install dependencies:
npm install # or yarn install
- Start the development server:
npm start # or yarn start
- Open your browser and go to: http://localhost:3000
The map should load with polling place data displayed as markers.