Skip to content

[Bug]: On a turned map, a polygon label's later places apply the class offset upright, while its first place turns it with the map #3508

Done

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?

On a turned map, the label class's offset points a different way depending on which place the label takes. Where a label goes without Try other places inside and around the polygon (points and polygons alike), and at a polygon's first place inside, the offset turns with the map: at a bearing of 90 degrees, an offset to the right moves the name up. At the places round a polygon (#3484) and further inside (#3500) it stays upright: the same offset moves the name right. So a name jumps by the difference when its first place is taken.

Measured in rustgis-render with an offset of [30, 0] points (39.9 px):

Bearing Place The offset moved the label by
0 any (39.9, 0.0)
90 point or polygon, setting off (0.0, -39.9)
90 polygon, first place inside (0.0, -39.9)
90 polygon, place round it (39.9, 0.0)

Steps to reproduce

  1. Add a point layer or a polygon layer, label it, and in the Labeling pane give the class an offset to the right of 30 points.
  2. For a polygon layer, turn on Try other places inside and around the polygon, with a name wider than the polygon and a heavier label over its first place.
  3. Turn the map to a bearing of 90 degrees.

Expected behavior

The offset points the same way at every place of a label.

How are you running RustGIS?

Desktop app (built from source)

Version

fdf25d1 (before #3503, which adds more places that apply it upright)

Activity

  1. jgregoriorincon commented on Dec 1, 2026

    @jgregoriorincon
    ContributorAuthor

    I'm taking this one.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions