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

Cancel image_source image request when underlying resource is no longer used #12266

Merged

Conversation

maciejmatu
Copy link
Contributor

@maciejmatu maciejmatu commented Sep 29, 2022

This PR introduces cancellation for image_source requests after the layer has been removed or updated to have a different url. It behaves similarly to the logic from raster_tile_source. It's very useful when the image_source is changing quite often due to user actions.

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • add an entry inside this element for inclusion in the mapbox-gl-js changelog: <changelog>Cancel ImageSource image request when underlying resource is no longer used</changelog>

@maciejmatu maciejmatu requested a review from a team as a code owner September 29, 2022 12:05
@CLAassistant
Copy link

CLAassistant commented Sep 29, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@stepankuzmin stepankuzmin left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks, @maciejmatu

@stepankuzmin stepankuzmin merged commit dd5bc24 into mapbox:main Oct 4, 2022
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.

None yet

3 participants