I am trying to get the coordinates of a polygon drawn by a user every time it changes.
According to the doc you can add a onMouseUp event. It works when
onMouseUp