Skip to content

[Feature]: layout.publication: hide or set up the grid, scale bar and north arrow #3094

Done

Description

@jgregoriorincon

Before you start

What problem does this solve?

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

  1. jgregoriorincon commented on Nov 27, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

  2. added
    enhancement
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions