#!/usr/bin/env python # coding: utf-8 # In[1]: import os import folium print(folium.__version__) # In[2]: m = folium.Map(location=[41, -71], zoom_start=4) kw = { 'prefix': 'fa', 'color': 'green', 'icon': 'arrow-up' } angle = 180 icon = folium.Icon(angle=angle, **kw) folium.Marker(location=[41, -72], icon=icon, tooltip=str(angle)).add_to(m) angle = 45 icon = folium.Icon(angle=angle, **kw) folium.Marker(location=[41, -75], icon=icon, tooltip=str(angle)).add_to(m) angle = 90 icon = folium.Icon(angle=angle, **kw) folium.Marker([41, -78], icon=icon, tooltip=str(angle)).add_to(m) m.save(os.path.join('results', 'Rotate_icon.html')) m