import os
import folium
print(folium.__version__)
0.5.0+27.g2d457b0.dirty
lon, lat = -38.625, -12.875
zoom_start = 8
m = folium.Map(location=[lat, lon], tiles='OpenStreetMap', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_0.html'))
m
m = folium.Map(location=[lat, lon], tiles='Mapbox Bright', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_1.html'))
m
m = folium.Map(location=[lat, lon], tiles='Mapbox Control Room', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_2.html'))
m
m = folium.Map(location=[lat, lon], tiles='Stamen Terrain', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_3.html'))
m
m = folium.Map(location=[lat, lon], tiles='Stamen Toner', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_4.html'))
m
m = folium.Map(location=[lat, lon], tiles='Stamen Watercolor', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_5.html'))
m
m = folium.Map(location=[lat, lon], tiles='Cartodb Positron', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_6.html'))
m
m = folium.Map(location=[lat, lon], tiles='Cartodb dark_matter', zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_7.html'))
m
attr = ('© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> '
'contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>')
tiles = 'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png'
m = folium.Map(location=[lat, lon], tiles=tiles, attr=attr, zoom_start=zoom_start)
m.save(os.path.join('results', 'TilesExample_8.html'))
m
from IPython.display import IFrame
IFrame('http://leaflet-extras.github.io/leaflet-providers/preview/', width=900, height=750)