In [1]:
import os
import folium
print(folium.__version__)
In [2]:
m = folium.Map(
world_copy_jump=False,
no_wrap=False
)
folium.Marker(
location=[0, 0],
popup='I will disapear when moved outside the wrapped map domain.'
).add_to(m)
m.save(os.path.join('results', 'ContinuousWorld_0.html'))
m
Out[2]:
In [3]:
m = folium.Map(
world_copy_jump=True,
no_wrap=False
)
folium.Marker(
location=[0, 0],
popup='I will magically reappear when moved outside the wrapped map domain.'
).add_to(m)
m.save(os.path.join('results', 'ContinuousWorld_1.html'))
m
Out[3]:
In [4]:
m = folium.Map(
world_copy_jump=False,
no_wrap=True,
)
folium.Marker(
location=[0, 0],
popup='The map domain here is not wrapped!'
).add_to(m)
m.save(os.path.join('results', 'ContinuousWorld_3.html'))
m
Out[4]: