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

Clear quads on layer addition and removal. #1010

Merged
merged 3 commits into from
Jul 10, 2019

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Jul 5, 2019

Previously, this was done on z-index changes. Since layers can be rendered in shared canvases, this is needed on layer removal or addition since that can effect the overall computed tile layer offsets.

Previously, this was done on z-index changes.  Since layers can be
rendered in shared canvases, this is needed on layer removal or addition
since that can effect the overall computed tile layer offsets.
@manthey manthey force-pushed the clear-quads-on-layer-change branch from c9e1eaa to 8545ce9 Compare July 5, 2019 17:57
The default (`true` setting) will only autoshare if it is likely to not
result in a visual difference (layer opacity 0 or 1, tile layers below
non-tile layers).  The `"more"` setting will perform as before this PR
-- autosharing if the opacities are identical and irrespective of the
mixing of tile and non-tile layers.  `false`, as before, won't
autoshare.

This also adds a map level setting of `autoshareRenderer` which sets the
defaults for newly created levels.
Copy link

@matthewma7 matthewma7 left a comment

Choose a reason for hiding this comment

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

I verified the issue is fixed in the latest.

Add a third state for autoshareRenderer.
@manthey manthey merged commit c061d6a into explicitly-lose-context Jul 10, 2019
@manthey manthey deleted the clear-quads-on-layer-change branch July 10, 2019 18:10
manthey added a commit that referenced this pull request Jul 10, 2019
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.

2 participants