import os
import folium
print(folium.__version__)
0.7.0+10.gdcb0002.dirty
from folium.plugins import MousePosition
m = folium.Map()
MousePosition().add_to(m)
m.save(os.path.join('results', 'MousePosition0.html'))
m
m = folium.Map()
# Define a Javascript function that formats the coordinate value
# that is passed to it.
formatter = "function(num) {return L.Util.formatNum(num, 3) + ' º ';};"
MousePosition(
position='topright',
separator=' | ',
empty_string='NaN',
lng_first=True,
num_digits=20,
prefix='Coordinates:',
lat_formatter=formatter,
lng_formatter=formatter
).add_to(m)
m.save(os.path.join('results', 'MousePosition1.html'))
m