You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
421 B
27 lines
421 B
2 years ago
|
import folium
|
||
|
from folium.plugins import MousePosition
|
||
|
|
||
|
|
||
|
m = folium.Map()
|
||
|
|
||
|
MousePosition().add_to(m)
|
||
|
|
||
|
m
|
||
|
|
||
|
m = folium.Map()
|
||
|
|
||
|
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
|