Lab7 leaflet
In [1]:
Copied!
import rasterarea.ipyleafletmap as ipyleafletmap
import rasterarea.ipyleafletmap as ipyleafletmap
In [2]:
Copied!
m = ipyleafletmap.Map(center=[40, -100], zoom=5)
m
m = ipyleafletmap.Map(center=[40, -100], zoom=5)
m
Out[2]:
In [3]:
Copied!
# add a basemap
m.add_basemap("roadmap")
# add a basemap
m.add_basemap("roadmap")
In [4]:
Copied!
# 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")
# 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")
Last update:
2023-05-11