All examples By author By category About

wrobstory

Folium Simple Markers

A terrain map with two markers generated by Folium. Click on the markers for popover information. This map was generated with the following Python code:

#Mt Hood, with Mapbox custom tiles
tileset = r'http://a.tiles.mapbox.com/v3/wrobstory.map-ze418b98/{z}/{x}/{y}.png'
map = folium.Map(location=[45.372, -121.6972], zoom_start=12, 
                 tiles=tileset)
map.simple_marker([45.3288, -121.6625], popup_txt='Mt. Hood Meadows')
map.simple_marker([45.3311, -121.7113], popup_txt='Timberline Lodge')
map.create_map()