src="" is not needed and causes an error when the example is opened in codesandbox
Adds the `getGetLegendGraphic` method to `ImageWMS` and `TileWMS` source. Also adds an example and corresponding tests.