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
What problem does this solve?
A layout's page is always white: the layout view and the PNG, PDF and SVG exports paint it white
before any element. A map on a dark or tinted page needs a rectangle the size of the sheet, sent
behind everything else. That rectangle is caught by clicks and selection boxes, has to be resized by
hand when the page size changes, and is one more element to keep track of in every such layout.
Proposed solution
layout.page takes "color": "#RRGGBB", and null to make the page white again. Its answer gives
the colour back.
The colour is kept with the layout, and left out when the page is white, so layouts saved before
keep their bytes.
It is painted under every element in the layout view, the PNG/JPEG, PDF and SVG exports, every
page of a map series, and the web download. layout.duplicate, layout.save and layout.import
keep it.
Page Setup gets a colour button.
A project with a coloured page lists the capability in requires, so an older reader refuses it
by name instead of opening it white.
Out of scope: transparency (a PNG with a see-through page); the Poster style of Publication
Layout keeps drawing its own background, so existing layouts don't change.
Estimated scope
Small: the layout model (one field), the page fill in render and SVG, layout.page, Page Setup,
capabilities and schema, the user guide. About 200 lines, one PR.
Alternatives considered
A rectangle the size of the page: today's workaround, described above.
A background on the map frame: a frame takes none, and the margins would stay white.
Activity
jgregoriorincon commentedon Nov 24, 2026
I'm working on this.
feat(layout): a page colour painted under every element (opengeos#2950)