Skip to content

Remove workarounds unsetting map content inset when setting map camera #2248

Closed

Description

@1ec5

#2211 worked around mapbox/mapbox-gl-native#15233 by adjusting the map’s content inset instead of its safe area, disabling automaticallyAdjustsScrollViewInsets in route overview mode, and zeroing out the content inset before calling cameraThatFitsShape(_:direction:edgePadding:) or camera(_:fitting:edgePadding:). Once mapbox/mapbox-gl-native#15233 is fixed, these workarounds should be removed so that we can take advantage of the map SDK’s built-in edge padding option distinct from the content inset option.

/ref #2145
/cc @mapbox/navigation-ios @astojilj @fabian-guerra

Activity

  1. added
    op-ex
    on Oct 2, 2019
  2. added
    blocked
    and removed on Sep 4, 2020
  3. 1ec5 commented on Oct 11, 2021

    @1ec5
    ContributorAuthor

    The relevant map SDK APIs have been rewritten as part of map SDK v10.0.0.

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

    blockedop-ex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions