Help identifying unusual bird on pond in urban park

Hi

Went for a walk today in our local park - urban area - and could not identify this single bird on an island in the middle of the pond. It was black, same size maybe larger than a duck but slimmer with long beak and large wingspan - it stood and spread wings in the sun

looked like a heron initially  but it was black and not as long legs

can anyone help??