You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Consider EdgeInsets in the projection matrix #12107
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
stale commentedon Dec 30, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
julianrex commentedon Jan 2, 2019
/cc @d-prukop
[core] Offset viewport center when edge insets are specified