!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.
where instead of
TX-26
we use thestate
andcd
parameters created in the loop i.e...."+state+"-"+cd+"...
Would need to create an exception for running
[(TX, None)]
and the like.