#!/usr/bin/env python
# coding: utf-8
# In[1]:
import folium
lon, lat = -38.625, -12.875
zoom_start = 8
# In[2]:
m = folium.Map(location=[lat, lon], tiles="OpenStreetMap", zoom_start=zoom_start)
m
# In[3]:
m = folium.Map(location=[lat, lon], tiles="Stamen Terrain", zoom_start=zoom_start)
m
# In[4]:
m = folium.Map(location=[lat, lon], tiles="Stamen Toner", zoom_start=zoom_start)
m
# In[5]:
m = folium.Map(location=[lat, lon], tiles="Stamen Watercolor", zoom_start=zoom_start)
m
# In[6]:
m = folium.Map(location=[lat, lon], tiles="Cartodb Positron", zoom_start=zoom_start)
m
# In[7]:
m = folium.Map(location=[lat, lon], tiles="Cartodb dark_matter", zoom_start=zoom_start)
m
# ### Custom tiles
# In[8]:
attr = (
'© OpenStreetMap '
'contributors, © CartoDB'
)
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
# ### There are plenty tile sources to choose from
# For a list of many more tile providers go to http://leaflet-extras.github.io/leaflet-providers/preview/