g.polyline.pointAtLength(length)
Return a point on the polyline that lies a specified length away from the start point along the polyline's path.
length