Skip to content

[Feature]: A mosaic sheet's panels take a label, a bookmark and a scale each #3579

Done

Description

@jgregoriorincon

Before you start

What problem does this solve?

A "style": "mosaic" sheet takes "panels": anonymous [west, south, east, north] boxes, each fitted to a round scale and numbered. An atlas page needs more: each panel named, a place already saved as a bookmark used as a panel, and one scale chosen for a panel instead of the fitted one. Today that means editing the frames and texts by hand after the sheet is made, which loses the numbering the key map keeps in sync (#3513).

Proposed solution

Each entry of "panels" may also be an object (the list of four stays valid, and they mix): {"extent": [w, s, e, n], "label": "Providencia", "scale": 2000000} or {"bookmark": "Providencia", …}.

  • label: the number's plate widens and reads "1 · Providencia", in the number's bold 10 pt. A label wider than its cell is cut with "…" and said in a warning.
  • bookmark: the panel shows what that bookmark's camera covers, as the map view shows it, fitted like any panel. A name that doesn't exist is an error that lists the bookmarks there are.
  • scale: the panel is drawn at 1:N, centred on its extent. One that doesn't hold the whole extent in its cell is kept and warned about, as nothing is cut silently.
  • A bad entry (an object with neither extent nor bookmark, or both; a scale that isn't a positive number; a label that isn't text) is an error naming panels[i].

Sheets with plain lists draw exactly as today.

Estimated scope

Small: a focused change, about 160 lines of code.

Alternatives considered

Editing each frame and text with layout.update after the sheet is made (many steps, and the key map's numbers are the sheet's to keep in sync); parallel lists "labels" and "scales" (they drift apart when a panel is removed).

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