I have an image placed using flutter_map in Flutter, which is positioned using NW/SE corner longitude/latitudes. I need to rotate this image around its centre a specified number of degrees - I do this in Google Maps by simply rotating the image div using CSS, which works fine for our purposes. Flutter lets me rotate the OverlayImageLayer, but not individual overlayImages.
As I understand it flutter_map uses a third lng/lat to specify the lower left (SW) bounding box corner to control rotation, and possibly also needs new co-ordinates for the other two points.
In short I need to be able to specify an initial bounding box which is unrotated, and then recalculate the corner positions once rotated a specified number of degrees.
I found a solution, credit to this answer - each corner point should be rotated around a central point, this gives transformed LatLngs providing the overlay does not overlap the poles or span the international date line.