Drawing a polygon based on click points Drawing a polygon based on click points The following code example draws a polygon based on click points