By using Gpolygon we can display a path on gmap. You need to just define order of locations(latitude,longitude) in this.
But you have to know How to generate Gmaps in ruby on rails
Create a polygone array #From Sri Lanka to Afghanistan
polyline=GPolyline.new([[7.880794,80.507813],
[22.792388,79.497070],
[29.874945, 69.345703],
[33.757228,65.522461]],
"#ff0000",1,5.0)
Add into your map
@map.overlay_init(polyline)
You will get following output.
Recent comments
1 year 23 weeks ago
1 year 23 weeks ago
1 year 25 weeks ago
1 year 27 weeks ago
1 year 42 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 46 weeks ago
1 year 48 weeks ago