edgi-govdata-archiving / ECHO-Cross-Program

Jupyter Notebooks for ECHO that use data from multiple EPA programs
https://colab.research.google.com/github/edgi-govdata-archiving/ECHO-Cross-Program/blob/master/ECHO-Cross-Programs.ipynb
GNU General Public License v3.0
8 stars 5 forks source link

Add Congressional District Outlines to AllPrograms map cell #94

Closed ericnost closed 3 years ago

ericnost commented 3 years ago
!pip install geopandas
import geopandas as gpd
# load into a geodataframe and map
map_data = gpd.read_file("https://raw.githubusercontent.com/unitedstates/districts/gh-pages/cds/2016/TX-26/shape.geojson")
w = folium.GeoJson(
    map_data,
    name = "EPA Regions",
).add_to(m) #m is the map object created to hold the facility points. we want to add this shape object to that map object
folium.GeoJsonTooltip(fields=["District"]).add_to(w)

where instead of TX-26 we use the state and cd parameters created in the loop i.e. ..."+state+"-"+cd+"...

Would need to create an exception for running [(TX, None)] and the like.

ericnost commented 3 years ago

Addressed by the enhancements branch?