Python data, leaflet.js maps

Folium speeds up the process of making maps compared to editing Leafletjs maps directly.

You can learn about this project here. Or from their Jupyter notebook examples, such as quick start.

Open a Jupyter notebook, and write code such as the following,

import folium

m = folium.Map(location=[24.7, 46.8],zoom_start=11,tiles='Stamen Terrain')

tooltip = 'Click me!'

folium.Marker([24.7, 46.8], popup='<i>a random location</i>', tooltip=tooltip,
              icon=folium.Icon(icon='cloud',color='green')).add_to(m)
folium.Marker([24.72, 46.82], popup='<b>another random location</b>', tooltip=tooltip).add_to(m)

folium.Circle(
    radius=100,
    location=[24.72, 46.82],
    popup='Affected Area',
    color='crimson',
    fill=False,
).add_to(m)

folium.CircleMarker(
    location=[24.7, 46.8],
    radius=30,
    popup='This is a circle marker, it changes size',
    color='#3186cc',
    fill=True,
    fill_color='#3186cc'
).add_to(m)

m

If you like what you see, save it using

m.save('folium.html')