In [1]:
import os
import folium

print(folium.__version__)


0.5.0+27.g2d457b0.dirty

Defaults


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]:

World copy jump


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]:

No wrap


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]: