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.

MGLMapCamera interprets viewing distance incorrectly #12943

Closed

Description

@1ec5

+[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] is based on MapKit’s +[MKMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:]. But even though the distance parameter is documented as “the straight-line distance from the viewpoint to the centerCoordinate”, it actually controls the altitude parameter, which is the height the viewpoint above the ground plane. This significant discrepancy has apparently always been present in the MGLMapCamera implementation, since #2193. Fixing it will likely require a semver-major release, but in the meantime it might be desirable to add a correct initializer alongside the buggy one.

/ref #12938
/cc @mapbox/maps-ios @d-prukop

Activity

  1. added
    iOS
    macOS
    navigation
    MapKit parity
    on Sep 22, 2018
  2. self-assigned this
    on Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MapKit paritybugiOSmacOSnavigation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions