title: Google Maps API: Bézier curve polyline wrap
body: <p>By using the Bezier curve polyline draw function <a href="https://stackoverflow.com/questions/5347984/letting-users-draw-curved-lines-on-a-google-map">provided by nicoabie</a> I was able to draw a curved line from one point on the map to another. The problem is that this function does not take in to account the fact that when a point is past the maximum coordinate mark it is not necessarily on the other side of the map, since it wraps around.</p>
  
  <p>For example, drawing a curved line from Seattle to Tokyo. A regular polyline would go across the Pacific ocean, but the the curved line draws east across the whole globe.</p>
  
  <p><code>geodesic: true</code> does not work in this case since the line must have a consistent curvature.</p>
  
  <p>My question is: <strong>can a consistently curved line be drawn that takes in to account map wrapping?</strong></p>