Skip to content

MapTheVoteSTL/wait2votestl

Repository files navigation

React Leaflet Map Application

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.

Table of Contents

Features

  • 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

Technologies Used

  • 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

Getting Started

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository:
    git clone <repository-url>
    cd <repository-directory>
  2. Install dependencies:
    npm install
    # or
    yarn install

Running the Application

  1. Start the development server:
    npm start
    # or
    yarn start
  2. Open your browser and go to: http://localhost:3000

The map should load with polling place data displayed as markers.

Folder Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published