Skip to content

[TASK] District statistics calculation  #65

@Hooobot

Description

@Hooobot

Overview

Providing statistics for which types of zoning districts are available across individual housing and senate districts.

Details

Current behavior:
When a user checks certain filters in the sidebar and then clicks anywhere in a jurisdiction, a popup appears and triggers an on-the-fly percentage calculation of the land area satisfying the filter(s) within the jurisdiction. See, for example, 1-Family housing is permitted in Maui:

image

Desired behavior:
As a user, I can change the "denominator" for this calculation using radio buttons in the sidebar:

  • County (default, same as current behavior)
  • State House District (calculates % of land satisfying criteria within the clicked House district)
  • State Senate District (calculates % of land satisfying criteria within the clicked Senate district)

When a user changes the denominator, the map should show boundary lines for that layer. Therefore, House District and Senate Districts should be removed from the Overlay menu once this functionality has been implemented.

On click, the boundaries of the particular district should be highlighted, just like the current behavior highlighting the county boundaries in yellow.

The new popup should read:
"N acres, or P% of zoned municipal area, in Senate District Q (R acres) satisfies your filtering criteria.

The other data points (HH income, etc.) should be commented out until we get Census data for those.

Action Items

  1. Format district sections into specified shape file
  2. Define areas with geopandas
  3. Get total area (from either CombineJurisdictions.ipynb or elsewhere (csv)
  4. Parse areas into statistics using pandas / activeAreaCalculator (search for this function in map.js)
  5. Pass it into CombineJurisdictions which later gets mapped with map.js
  6. Add new "Boundaries" section to sidebar with radio buttons for each option
  7. Remove House District and Senate Districts from Overlay section of sidebar

Metadata

Metadata

Assignees

Labels

TASK ✅Needs action taken | Tracked by an EPICdev 🦍Development Teamenhancement 🪄New feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions