RoR - Polyline in GoogleMaps
Posted
by Arwed
on Stack Overflow
See other posts from Stack Overflow
or by Arwed
Published on 2010-04-15T06:15:23Z
Indexed on
2010/04/15
6:23 UTC
Read the original article
Hit count: 284
I'm using Ym4r and want to add a polyline to my map.
This works:
polyline = GPolyline.new([[27.4037755983,89.4263076782],[27.5155793659,89.3245124817]],"#ff0000",3,1.0)
@map.record_init @map.add_overlay(polyline)
But this doesn't:
polystring = "[27.4037755983,89.4263076782],[27.5155793659,89.3245124817]"
polyline = GPolyline.new([polystring],"#ff0000",3,1.0)
@map.record_init @map.add_overlay(polyline)
Any idea why? Regards Arwed
© Stack Overflow or respective owner