💥How? When you choose two points on 2D map, it translates those coordinates into 3D. Draws a line between the two points in 3D coordinates (blue line). Then splits that line into n many points. After that behaves like those points are vectors from the center of the sphere and makes their length equal to the radius, which is equal to making them touch the surface(dotted line). Finally, translates those n points' locations on the surface into 2D map locations.
👀See an example:
🔗Note that you should install Pygame to run the code.