感谢@Bob Haffner的有用帮助。该技巧包括为负经度添加360
。
import folium
points = [[35.7652, 140.3855], [40, 180], [40, 360 -180], [33.9425, 360 -118.4080]]
map = folium.Map(location=[0, 180], zoom_start=2)
folium.PolyLine(points, color="red", weight=2.5).add_to(map)
map.save("myMap.html")