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

MGLMapCamera doesn't respect edgePadding on SDK 5.6.0+ #198

@maxmamis

Description

@maxmamis

Flying to an MGLMapCamera does not respect insets as expected on SDK version 5.6.0+.

Minimal reproducible code:

let camera = mapView.cameraThatFitsCoordinateBounds(bound, edgePadding: UIEdgeInsets(top: 200, left: 0, bottom: 0, right: 0))
mapView.fly(to: camera, completionHandler: nil)

Expected behavior: zooms to the specified location in the bottom third of the screen. (This works properly on SDK version 5.5.0)
Observed behavior: zooms to the specified location dead center on the screen.

Tested using an iPhone XS running iOS 13.3.1

Screenshots:

5.7.0:
IMG_AB7EA258F9C0-1

5.5.0:
IMG_D0354889178D-1

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