Skip to content

[Bug]: Publication Layout's globe locator is clipped near a pole #2348

Closed

Description

@jgregoriorincon

Before you start

  • 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 globe locator for a disc that fills its circle at the area's own latitude. Near a pole the camera can't draw a globe that small there: its resolution stops at its coarsest (MAX_RES), so the disc comes out much larger than the circle and the locator shows a clipped piece of globe instead of the globe with the area outlined.

With an extent over Svalbard ([10, 76, 30, 81]) on A4 portrait, the locator is drawn at 1:271,000,000 centred at 78.8° N with the camera at its coarsest. The same happens on a map on the Globe projection with no extent and the view near a pole when "locator": "globe" is asked for (#2337 made that sheet centre on the view).

Steps to reproduce

  1. Open the sample project.
  2. Run layout.publication with {"profile": "a4-portrait", "extent": [10, 76, 30, 81]}.
  3. Look at the locator in the top left corner.

Expected behavior

The locator shows the whole globe in its circle, with the area outlined. Where the globe can't be drawn that small at the area's latitude, it is centred as near the area as fits (as the main frame of a whole-globe sheet already is), and the area is still outlined on it.

How are you running RustGIS?

Desktop app (built from source)

Version

main at 93dad51

Operating system, browser and graphics

macOS 15 (Darwin 24.6)

Sample data

The sample project (World Atlas).

Screenshots or logs

Found by a test: frame_camera for the locator returns res == MAX_RES at 1:271,261,555 centred at (20.0, 78.77).

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed possible issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions