Closed ComBatVision closed 2 years ago
Applying Placemark.imageRotation to non-squre images stretch them.
Specify any non-square image as source of Placemark and set any non-zero imageRotation.
Expected behavior: Image should save its proportions
Actual behavior: Image stretch to original width and height
Reproduces how often: always
JS code base has the same issue. Java code base use GL2 instead of Matrix for rotation and has no issue. https://github.com/WorldWindEarth/worldwindjs/issues/63
Description
Applying Placemark.imageRotation to non-squre images stretch them.
Steps to Reproduce
Specify any non-square image as source of Placemark and set any non-zero imageRotation.
Expected behavior: Image should save its proportions
Actual behavior: Image stretch to original width and height
Reproduces how often: always
Additional info
JS code base has the same issue. Java code base use GL2 instead of Matrix for rotation and has no issue. https://github.com/WorldWindEarth/worldwindjs/issues/63