Drawing a polyline based on click points Drawing a polyline based on click points The following code example draws a polyline based on click points.