districtr / districtr-v2

A free, open-source web app for drawing districting plans. Reboot of districtr.
MIT License
1 stars 1 forks source link

Implement county paint using FIPS prefix #166

Closed mapmeld closed 1 week ago

mapmeld commented 2 weeks ago

Blocks, block groups, and VTDs get their ID / GEOID from their Census FIPS code, where the first two digits represent their state and the next three digits represent their county.

While in county paint mode, we can select all blocks/VTDs in the same county by this prefix. Because this uses queryRenderedFeatures, it will not catch blocks outside the current view.

This makes assumptions, and if this is wrong I should change it, or enable/disable county paint on specific maps:

Update: removed turf from dependencies

nofurtherinformation commented 1 week ago

(P.s. Just needs main merged in but conflict looks minimal)

mapmeld commented 1 week ago

Rebased and updated dependencies so I need a renewed ✅ then this is ready to merge