IDREsandbox / hatecrimemap

Full stack web application using GIS software to visualize harassment claim data from the US
http://hatecrimemap.com/
MIT License
3 stars 5 forks source link

initial push to fix clicking outside the map #67

Closed ldalton02 closed 2 years ago

ldalton02 commented 3 years ago

Accidentally merged into master a while back on the other branch so restarting changes here.

ldalton02 commented 3 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

ldalton02 commented 3 years ago

Leaving this here for now but don't think it'll ever be used, most changes became outdated with react-leaflet 3.0.