Skip to content

Applying Placemark.imageRotation to non-squre images stretch them #31

@EMaksymenko

Description

@EMaksymenko

Description

Applying Placemark.imageRotation to non-squre images stretch them.
120925094-df67f380-c6a4-11eb-8a66-fa78e91450ab
120925104-f575b400-c6a4-11eb-92b3-f65c1264f0b0
120925132-2229cb80-c6a5-11eb-984c-83c136ece8e0

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.
WorldWindEarth/worldwindjs#63

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions