-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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:
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
- Format district sections into specified shape file
- Define areas with geopandas
- Get total area (from either CombineJurisdictions.ipynb or elsewhere (csv)
- Parse areas into statistics using pandas / activeAreaCalculator (search for this function in map.js)
- Pass it into CombineJurisdictions which later gets mapped with map.js
- Add new "Boundaries" section to sidebar with radio buttons for each option
- Remove House District and Senate Districts from Overlay section of sidebar
