Hello! I am trying to make a scattermapbox using plotly and am running into some issues:
I am trying to plot a filled area using the following coordinates:
lats = [17,7, 13, 15, 17]
lons = [-170, 100, 136, 153, -170]
The problem I am running into is how go.Scattermapbox is displaying the lines. Instead of drawing a line connecting longitude 100 to -170 and crossing the 180 meridian, it draws the line all the way around the world (Please view the attached image). I believe this is due to my points straddling -180 degrees longitude. If I just add 360 to the 170, it is displayed correctly, however that just moves the problem to values that straddle 0 degrees longitude (prime meridian). Has anyone else encountered this? How do you fix this issue?