views:

130

answers:

2

Hi, I wonder, how can I draw a nice flight route between 2 points on a google map's MapView?

look at this: http://maps.forum.nu/gm_flight_path.html

this is exactly what I need.

thanks!

+2  A: 

Look at my reply to question

http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file/3109723#3109723

and there especially into the RouteOverlay class / draw method. Since you only want to draw a simple straight line, you probably won't need the rest of the complexity there.

Mathias Lin
That's the thing - I don't want to draw a simple straight line. I need a nice arc-like line to pass the feel of an airliner route.
oriharel
I see; above sample url only draws straight lines, that why I thought... anyway, how to draw a curved line - refer to http://www.tbray.org/ongoing/When/200x/2009/01/02/Android-Draw-a-Curved-Line
Mathias Lin
Thanks! that help a lot!
oriharel
A: 

Why don't you just view source? It's all client side javascript.

Marcelo