Lab7 folium
In [1]:
Copied!
# try folium map
import rasterarea.foliummap as foliummap
# try folium map
import rasterarea.foliummap as foliummap
In [2]:
Copied!
m = foliummap.Map(center=[40, -100], zoom=5)
# add basemap
m.add_basemap(basemap = "Roadmap",attribution="Google")
# add a shpfile layer
url = "http://www2.census.gov/geo/tiger/GENZ2015/shp/cb_2015_us_county_500k.zip"
m.add_shp(url, name="US Counties")
m
m = foliummap.Map(center=[40, -100], zoom=5)
# add basemap
m.add_basemap(basemap = "Roadmap",attribution="Google")
# add a shpfile layer
url = "http://www2.census.gov/geo/tiger/GENZ2015/shp/cb_2015_us_county_500k.zip"
m.add_shp(url, name="US Counties")
m
Out[2]:
Make this Notebook Trusted to load map: File -> Trust Notebook