Commit Graph

3 Commits

Author SHA1 Message Date
Minh Nguyễn
a9dc1b5294 [ios, macos] Fixed camera initialization with eye coordinate
Rewrote the code that calculates the heading and pitch of the camera when given an eye coordinate.
2018-10-01 18:12:03 -07:00
Minh Nguyễn
85a474e275 [ios, macos] Added MGLMapCamera.viewingDistance property
Co-authored-by: Dave Prukop <dave.prukop@mapbox.com>
2018-10-01 18:12:03 -07:00
Minh Nguyễn
a030f1474f [ios, macos] Distinguish between viewing distance and altitude
+[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] incorrectly treated the distance as an altitude. Due to backwards compatibility concerns, this method can’t be fixed in place. Instead, separate +[MGLMapCamera cameraLookingAtCenterCoordinate:correctlyFromDistance:pitch:heading:] and +[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:] methods have been added.
2018-10-01 18:12:03 -07:00