#!/usr/bin/env python # coding: utf-8 # In[1]: import os import folium print(folium.__version__) # ## 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 # ## 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 # ## 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