Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] District statistics calculation #65

Open
Hooobot opened this issue Feb 10, 2023 · 0 comments · Fixed by #92
Open

[TASK] District statistics calculation #65

Hooobot opened this issue Feb 10, 2023 · 0 comments · Fixed by #92
Assignees
Labels
dev 🦍 Development Team enhancement 🪄 New feature or request TASK ✅ Needs action taken | Tracked by an EPIC

Comments

@Hooobot
Copy link

Hooobot commented Feb 10, 2023

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
@github-actions github-actions bot added the triage 🏥 Needs attention label Feb 10, 2023
@Hooobot Hooobot added the TASK ✅ Needs action taken | Tracked by an EPIC label Feb 10, 2023
@Hooobot Hooobot self-assigned this Feb 10, 2023
@kmal808 kmal808 added enhancement 🪄 New feature or request dev 🦍 Development Team high priority 🫡 High Priority and removed triage 🏥 Needs attention labels Feb 14, 2023
@Hooobot Hooobot linked a pull request Aug 8, 2023 that will close this issue
@Hooobot Hooobot removed a link to a pull request Aug 8, 2023
@Hooobot Hooobot linked a pull request Aug 8, 2023 that will close this issue
@tyliec tyliec removed the high priority 🫡 High Priority label Aug 8, 2023
@tyliec tyliec closed this as completed in #92 Aug 8, 2023
@Hooobot Hooobot reopened this Aug 8, 2023
@github-actions github-actions bot added the triage 🏥 Needs attention label Aug 8, 2023
@kmal808 kmal808 removed the triage 🏥 Needs attention label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev 🦍 Development Team enhancement 🪄 New feature or request TASK ✅ Needs action taken | Tracked by an EPIC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants