Closed ldalton02 closed 2 years ago
Note: this changes a bit of the functionality for how state colors are reset. The color is only calculated once and stored in the state feature. Whenever it is selected, that color is temporarily stored in the locked layer variable that already existed in data-utils. Any click on another state or outside the map now resets that state to whatever color was stored in the lockedlayer, removing the need to go through all layers and reset colors in the home page. Removes the need for resetStateColor and resetStateColors functions
Leaving this here for now but don't think it'll ever be used, most changes became outdated with react-leaflet 3.0.
Accidentally merged into master a while back on the other branch so restarting changes here.