Skip to content

fix(tile_layer): Don't mark a failed tile ready to display without an error image - #2260

Open
nebkat wants to merge 1 commit into
fleaflet:masterfrom
nebkat:fix/error-tiles-not-covering
Open

fix(tile_layer): Don't mark a failed tile ready to display without an error image#2260
nebkat wants to merge 1 commit into
fleaflet:masterfrom
nebkat:fix/error-tiles-not-covering

Conversation

@nebkat

@nebkat nebkat commented Sep 7, 2026

Copy link
Copy Markdown

readyToDisplay documents itself as true when "loading errored but an error image is configured", but _display() set it on any error regardless. A tile that failed and has nothing to paint therefore counted as covering its area, so renderTiles discarded the coarser ancestor standing in for it and the area went blank instead of staying upscaled. Services whose coverage depth varies by location show this plainly: past the deepest level available at a given place the tiles 404, and zooming in lost detail that was already on screen.

Set it from errorImage, as documented. Tiles that have an error image are unaffected, and must stay ready - opacity is gated on this, so the error image would otherwise never be painted.

… error image

readyToDisplay documents itself as true when "loading errored but an error image
is configured", but _display() set it on any error regardless. A tile that
failed and has nothing to paint therefore counted as covering its area, so
renderTiles discarded the coarser ancestor standing in for it and the area went
blank instead of staying upscaled. Services whose coverage depth varies by
location show this plainly: past the deepest level available at a given place
the tiles 404, and zooming in lost detail that was already on screen.

Set it from errorImage, as documented. Tiles that have an error image are
unaffected, and must stay ready — opacity is gated on this, so the error image
would otherwise never be painted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant