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

Optimize layer update #3853

Merged
merged 2 commits into from
Dec 22, 2016
Merged

Optimize layer update #3853

merged 2 commits into from
Dec 22, 2016

Conversation

mourner
Copy link
Member

@mourner mourner commented Dec 22, 2016

This change makes the worker avoid recreating all layer instances when updating just a few layers (e.g. with setFilter).

This fixes performance for cases where the updated source doesn't contain much data, but the update is bogged down by all other layers from the basemap — e.g. as on our official hover example. Ref #2874 (comments).

cc @jfirebaugh @lucaswoj

@mourner mourner merged commit 98d8d2c into master Dec 22, 2016
@mourner mourner deleted the optimize-update branch December 22, 2016 19:23
@zuo1188
Copy link

zuo1188 commented Mar 3, 2017

it may cause new bugs for applications using the 'setStyle' method. it won't refresh sprite any more

@mourner
Copy link
Member Author

mourner commented Mar 3, 2017

@zuo1188 if you're experiencing a specific issue, please submit it as a new issue to GitHub (with clear steps to reproduce and a minimal test case).

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.

4 participants