Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure image extent is valid when scale is negative #11401

Merged
merged 1 commit into from Aug 8, 2020

Conversation

mike-000
Copy link
Contributor

@mike-000 mike-000 commented Aug 6, 2020

Fixes #11394

When there is no rotation or render buffer and the image scale is negative the calculated extent was invalid (flipped) and therefore would not be recognised as intersecting.

Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests for both rendering and hit detection of an icon with negative scale.

test large flipped icon in buffer zone
test hit detection for negative image scale
Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mike-000.

@ahocevar ahocevar merged commit 82328fe into openlayers:main Aug 8, 2020
@mike-000 mike-000 deleted the patch-10 branch April 27, 2021 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hit detection and rendering issue with negative icon scale
2 participants