Double-click to close the polygon