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
[Feature]: layout.publication: hide or set up the grid, scale bar and north arrow #3094
layout.publication always adds a graticule and a scale bar in their default look, and its north arrow only takes "auto", "always" or "none". A script or the assistant that wants no grid, a bar in miles or a compass arrow has to fix each element after the sheet is made, and the publication wizard has no way to offer these choices.
Proposed solution
Each of these parameters takes "none" to leave the part out, or an object with the options the element already takes:
"grid": the options of a frame's grid in layout.addElement (type, step, style, labels, edges, labelSize…). Without a grid, or without labels, the frame keeps no label strips, and without a graticule the default reference text drops its graticule part.
"scaleBar": the options layout.update takes for a scale bar (units, style, divisions…).
"northArrow": also an object {"show": "auto"|"always", "style", "fill", "outline"}; the three strings keep working.
A key the part doesn't read is refused. Without these keys the layout is the same as today.
Acceptance: tests for hiding each part, each option reaching its element, bad values and unknown keys refused with nothing created, and today's output unchanged.
Estimated scope
Medium: a broader feature that is feasible in a reasonable timeframe
Alternatives considered
Editing or removing each element after the command (layout.update, layout.removeElement): the room a removed part took stays as it was and the other surrounds are not placed again.
Activity
jgregoriorincon commentedon Nov 27, 2026
I'll take this.