Minnesota Legislative Coordinating Commission

Legislative district mapping application User Interface

The District Finder application is a completely open-source full-stack, responsive (RWD) application, built with PostGIS, Leaflet, and a little TLC, that was spun off of the District Finder. The only difference is that this shows precincts as well.

See it in the wild at http://gis.leg.mn

What's included?

  • Code
  • Data (GeoJSON)
    • MN Untied States Congressional Districts
    • MN House Districts
    • MN Senate Districts
    • MN Municipal Boundaries
    • MN Counties
    • MN House, Senate, Congressional images
    • mapserver.map WMS configuration file

What does it do?

  • Fun geodev tools
    • Geocodes addresses (Google JavaScript API authentication token required)
    • Zooms to location on cellphones (application optimized using RWD)
  • Consumes MapServer WMS
    • Free and open source map service publishing
    • Much faster rendering than vectors
  • Basic UI/UX
    • Point and click on the map, or use the search bar to retrieve legislative data
    • Click on a legislative member to retrieve members district boundary or website
    • Add House/Senate overlay layers to geo-explore Minnesota's representative districts

The code relies on a connection to an instance of PostGreSQL/PostGIS, a free and open-source spatial database. But for testing, connections can be made to the GeoJSON included in the data folder.

The GeoJSON in the data folder is used in the app to add overlay layers to the map, this saves time and allows the browser to cache the responses, thus increasing the load time speed significantly better than PostGIS queries.