simplegeo / polymaps

Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.
http://polymaps.org/
Other
1.6k stars 213 forks source link

Is it possible to draw a curved line? #103

Closed arktisma closed 12 years ago

arktisma commented 12 years ago

I guess the title says it all... How could I draw a curved line between markers/points in Polymaps?

For example, let's say I wanted to draw a point in Australia to a point in Europe with curvature, much like one might see a flight route mapped?

Thanks!

mbostock commented 12 years ago

Take a look at D3's support for great arcs:

https://github.com/mbostock/d3/blob/master/examples/great-arc/great-arc.html http://mbostock.github.com/d3/talk/20111116/#14