Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Consider EdgeInsets in the projection matrix #12107

Closed

Description

@brunoabinader

Our projection matrix does not consider the values from EdgeInsets when calculating perspective, causing the focal point to be always based on the view's horizontal center.

This is relevant in cases where we e.g. update the map position snapped on a street that is a straight line, but because EdgeInsets are applied, the map center differs from the view center and thus causes the street line to be skewed.

Example: on the screenshot below, the map occupies the whole view area, but EdgeInsets are applied so the effective map center is the center of the bounding box (red rectangle):

/cc @mapbox/gl-core

Activity

  1. added
    Core
    on Jun 9, 2018
  2. self-assigned this
    on Jun 19, 2018
  3. removed their assignment
    on Jul 3, 2018
  4. added
    archived
    on Dec 30, 2018
  5. stale commented on Dec 30, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  6. removed
    archived
    on Jan 2, 2019
  7. julianrex commented on Jan 2, 2019

    @julianrex
    Contributor
  8. added a commit that references this issue on May 14, 2019
    3523033
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

    Corebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions