These modifications enhance the depiction of the route leg that crosses the discontinuity by avoiding the addition of a route waypoint at the discontinuity. The update also fixes a route overlay bug at the -180/+180 longitude discontinuity. The formula for working out the latitude where the route leg crossed the boundary contained an error which resulted in the image::drawLine() method getting stuck in an infinite loop. This update fixes the algorithm and prevents the problem occuring. There should probably be something in the drawLine function to check for and avoid this.
These modifications enhance the depiction of the route leg that crosses the discontinuity by avoiding the addition of a route waypoint at the discontinuity. The update also fixes a route overlay bug at the -180/+180 longitude discontinuity. The formula for working out the latitude where the route leg crossed the boundary contained an error which resulted in the image::drawLine() method getting stuck in an infinite loop. This update fixes the algorithm and prevents the problem occuring. There should probably be something in the drawLine function to check for and avoid this.