I have a question about how to correctly position and rotate a ground overlay at the same time.
The ground overlay in the Android implementation uses Bounds and Bearing to position and rotate a ground overlay. So I tried overlay a building with an image and use two coordinate points (North-West and South-East) as the bounds with a bearing value that was calculated out of those two points.
The bearing itself is correct and the overlay rotates corretly. But using the bounds the ground overlay first positions the image and tries to calculate the width and height of the overlay without respecting the bearing so that the result is a wrong positioned and sized overlay.
Hi.
I have a question about how to correctly position and rotate a ground overlay at the same time.
The ground overlay in the Android implementation uses Bounds and Bearing to position and rotate a ground overlay. So I tried overlay a building with an image and use two coordinate points (North-West and South-East) as the bounds with a bearing value that was calculated out of those two points.
The bearing itself is correct and the overlay rotates corretly. But using the bounds the ground overlay first positions the image and tries to calculate the width and height of the overlay without respecting the bearing so that the result is a wrong positioned and sized overlay.
This is how it looks like without a bearing:
This is with bearing:
And this is the expected result:
How can I accomplish that?