Repository navigation
[Backport 2026.02.xx] Fix #12689 - Remove unnecessary src=null on WMS tile load error - #12749
Merged
Merged
Conversation
* Fix #12689 - Remove unnecessary src=null on WMS tile load error Setting img.src = null does not clear the image; the DOM coerces it to the string "null", causing a real (always-404) network request. image.setState(3) alone already triggers the source's tileloaderror/imageloaderror events (state-based, no DOM event dependency), making the src=null line redundant. * Add test for #12689 spurious /null request removal Verifies the tile error handler no longer sets img.src = null on failure. * Fix #12689 - set error state on single tile WMS load failure ol/Image has no setState, unlike ol/ImageTile: notify the state change manually so imageloaderror is emitted without setting img.src to null. Tests now configure requestsConfigurationRules to reach the custom load function error branch. (cherry picked from commit 40197f0)
allyoucanmap
approved these changes
Jul 29, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #12691 to
2026.02.xx.Fix #12689