In [1]:
import folium
from folium.plugins import MiniMap
In [2]:
m = folium.Map(location=(30, 20), zoom_start=4)
minimap = MiniMap()
m.add_child(minimap)
m
Out[2]:
In [3]:
m = folium.Map(location=(30, 20), zoom_start=4)
minimap = MiniMap(toggle_display=True)
minimap.add_to(m)
m
Out[3]:
In [4]:
m = folium.Map(location=(30, 20), zoom_start=4)
minimap = MiniMap(tile_layer='Stamen Toner')
minimap.add_to(m)
m
Out[4]:
In [5]:
m = folium.Map(location=(30, 20), zoom_start=4)
minimap = MiniMap(position='topleft')
minimap.add_to(m)
m
Out[5]:
In [6]:
m = folium.Map(location=(30, 20), zoom_start=4)
minimap = MiniMap(width=400, height=100)
minimap.add_to(m)
m
Out[6]:
In [7]:
m = folium.Map(location=(30, 20), zoom_start=8)
minimap = MiniMap(zoom_level_offset=-8)
minimap.add_to(m)
m
Out[7]: