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

Detect static image loaders by arguments length #15039

Merged
merged 1 commit into from Aug 31, 2023

Conversation

ahocevar
Copy link
Member

This pull request fixes the problem that static images get re-requested on every extent or resolution change.

To detect a static image loader (i.e. a loader that returns an image which is valid for any extent and resolution), the Image source now checks for the length of the loader function.

@github-actions
Copy link

📦 Preview the website for this branch here: https://deploy-preview-15039--ol-site.netlify.app/.

@ahocevar ahocevar merged commit 135f0d6 into openlayers:main Aug 31, 2023
8 checks passed
@ahocevar ahocevar deleted the static-avoid-reload branch August 31, 2023 07:20
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

2 participants