3

I'm trying to curve the lines between points on a RaphaelJS map like Tata Communications - but how did they do it? What sort of mathematics lie behind these curves - unless ofcourse they're all manually drawn?

Some dude told me Catmull-Rom Splines, but those will only smoothen lines, not curve them.

Many thanks!

RyanKDalton
  • 23,068
  • 17
  • 110
  • 178
Mark Boulder
  • 263
  • 3
  • 8
  • 1
    Have you zoomed into that map to see details? Look at Miami and the Bahamas for instance: it is clear that even the endpoints of the curves are manually placed and edited. – whuber Jun 05 '12 at 13:15
  • Might tmcw's solution about using arc.js at least get me close though? – Mark Boulder Jun 05 '12 at 16:36
  • 1
    Not even remotely: it's for computing geodetically straight lines, not curves. Merely as an example of the myriad approaches to this, see http://gis.stackexchange.com/questions/5204/curved-point-to-point-route-maps – whuber Jun 05 '12 at 16:41

1 Answers1

1

See arc.js for a semi-automated solution.

tmcw
  • 4,286
  • 20
  • 22