import folium
from IPython.display import HTML, Javascript, display
def inline_map(m):
m._build_map()
srcdoc = m.HTML.replace('"', '"')
embed = HTML('<iframe srcdoc="{srcdoc}" '
'style="width: 100%; height: 500px; '
'border: none"></iframe>'.format(srcdoc=srcdoc))
return embed
#station = st_list[st_list.keys()[0]]
#map = folium.Map(location=[station["lat"], station["lon"]], zoom_start=4)
map = folium.Map(location=[41, -71], zoom_start=4)
#map.line(get_coordinates(bounding_box, bounding_box_type), line_color='#FF0000', line_weight=5)
#plot the obs station,
#for st in st_list:
map.simple_marker([41,-72], popup='something something...<br>',marker_color="green",marker_icon="arrow-up",icon_angle=0)
inline_map(map)