See attached screenshot. How can I fix that weird behaviour? All coords I submit are “in the water” and at 180deg lon there’s a cutoff (they are not connected). It works perfectly fine for every set of coords which “does not cross the pacific”.
#waypoints is a pandas df with columns lon and lat in degrees ranging from -180 to 180
#the number 180 depends on your "step size", may need customization
for plusmin_crossing in crossings_plusminus:
for minusplus_crossing in crossing_minusplus:
fig = px.line_mapbox(lat=waypoints.lat, lon=lons)