-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
IconLayer: fix copy texture data when resize #4151
Conversation
8582436
to
ebf0c93
Compare
test/render/test-cases.js
Outdated
getIcon: d => { | ||
if (d.PLACEMENT === 'SW') { | ||
return { | ||
url: './test/render/golden-images/pointcloud-meter.png', | ||
url: './test/render/golden-images/examples/website_screen-grid.png', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not use a golden image as icon? They may change in the future for reasons unrelated to this layer.
You can just reuse the marker pngs with a different id and size.
width: 1024, | ||
height: 1024, | ||
anchorY: 1024, | ||
mask: false | ||
}; | ||
}, | ||
onAfterRender: ({layers, done}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this why the test was failing? 😒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Background
for #4146 and related to #4039
Change List