FoliumMappingLab7
In [1]:
Copied!
#! pip install fakemap
#! pip install fakemap
In [2]:
Copied!
import fakemap.foliummap as fakemap
import fakemap.foliummap as fakemap
In [3]:
Copied!
m = fakemap.Map(center=[40,-80], zoom=2)
m = fakemap.Map(center=[40,-80], zoom=2)
In [4]:
Copied!
#you can add any basemap you want from xyz services, or URL.
m.add_basemap( 'Roadmap', attribution= 'Google')
#you can add any basemap you want from xyz services, or URL.
m.add_basemap( 'Roadmap', attribution= 'Google')
In [5]:
Copied!
#you can add any geojson.
m.add_geojson('Sample/map.geojson', name = 'counties')
#you can add any geojson.
m.add_geojson('Sample/map.geojson', name = 'counties')
In [6]:
Copied!
#you can add any shapefile, from local file or URL
m.add_shp('Sample/counties.zip', name='Counties')
#you can add any shapefile, from local file or URL
m.add_shp('Sample/counties.zip', name='Counties')
In [7]:
Copied!
#you can add any vector data
m.add_vector('Sample/map (1).geojson')
#you can add any vector data
m.add_vector('Sample/map (1).geojson')
In [8]:
Copied!
m
m
Out[8]:
Make this Notebook Trusted to load map: File -> Trust Notebook