You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: layout.publication sizes its legend by layers it doesn't list #3160
I searched the existing issues and did not find a duplicate.
This is a bug report, not a usage question (questions belong in Discussions).
What happened?
layout.publication sizes its legend as if it listed every layer, in two places:
While any layer of the map is still reading, the legend gets a fixed size and the warning "the legend's classes aren't known yet (a layer still reading)", even when that layer isn't in the legend (one left out as context, or by legend.exclude in feat(layout): leave out a publication's legend or set its title, columns and layers #3127) and the listed layers' classes are known. sync_sources_in answers one flag for every layer.
A complete source that can't be read stops the legend being measured even when the legend leaves that layer out: asked_rows (crates/render/src/layout/legend.rs) reads the complete sources before it filters the rows.
Found reading the code.
Steps to reproduce
Open a map with a vector layer already read and a raster read in place from a slow address.
Run layout.publication {"legend": {"exclude": ["<the raster>"]}} while the raster is still reading.
Expected behavior
The legend is sized by its listed layers' rows alone, with no notice about the others.
Activity
jgregoriorincon commentedon Nov 27, 2026
I'll take this.