To draw a line on a map, you either can use px.line_map in Plotly Express, or go.Scattermap in Plotly Graph Objects. Here's an example of drawing a line on a tile-based map using Plotly Express.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results