edgi-govdata-archiving / EEW_SDWA_NJ

An open educational resource developed at the Environmental Data and Governance Initiative for interactive exploration of New Jersey's waters and water pollution.
https://eew-sdwa-nj.streamlit.app/
GNU General Public License v3.0
1 stars 0 forks source link

improve default area functioning across pages #99

Closed ericnost closed 1 year ago

ericnost commented 1 year ago

We already now load all data on Welcome.py

We should also at the same time filter it to Paterson, NJ and store it the appropriate st.session_state variables in order to make it accessible to the violations, lead lines, EJ, etc. pages. That way we can show things like PSAs (at least in Paterson) on the EJ page without users having to go to the box drawing page first. They'll still have to go to Welcome.py first no matter what, but then from there they'll at least get the default.

st.session_state["data"] = local SDWA numbers
st.session_state["markers"] = local PWS
st.session_state["psa_gdf"] = local PSAs