summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLMapCamera.mm
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Logging. (#13235)Fabian Guerra Soto2018-11-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Update the logging subsystem to platform agnostic. * [ios, macos] Add coordinate to string function. * [ios, macos] Add BOOL to string function. * [ios, macos] Add tracing logs. * [ios, macos] Add tracing logs to generated style classes. * [ios, macos] Split logging categories accordingly to MGLLoggingLevel. * [ios, macos] Log network requests. * [ios, macos] Migrate NSAssert to MGLAssert. * [ios, macos] Include MGLLoggingConfiguration to filesource-files.txt. * [ios, macos] Fix logger string specifier for the line parameter. * [ios, macos] Add logs to shapes classes. * [ios, macos] Add logs to offline classes. * [ios, macos] Add logs to annotation classes. * [ios, macos] Add logs to foundation classes. * [ios, macos] Fix snapshotter size logging. * [macos] Add logs to map view. * [ios, macos] Fix string from boolean prefix, add custom function for NSCAssert. * Log size test * [ios, macos] Add logging conditional compilation flag. * [ios, macos] Rename function NSStringFromMGLTransition to MGLStringFromMGLTransition. * [ios, macos] Remove verbose logging for release builds. * [ios, macos] Rename NSStringFromCLLocationCoordinate2D to MGLStringFromCLLocationCoordinate2D. * [ios, macos] Clean unnecesary blank lines in MGLLight.mm set methods. * [ios, macos] Fix logging grammar, format, function names. * [ios, macos] Remove compilation flag, rename flags.
* [ios, macos] Fixed camera initialization with eye coordinateMinh Nguyễn2018-10-011-11/+11
| | | | Rewrote the code that calculates the heading and pitch of the camera when given an eye coordinate.
* [ios, macos] Added MGLMapCamera.viewingDistance propertyMinh Nguyễn2018-10-011-0/+14
| | | | Co-authored-by: Dave Prukop <dave.prukop@mapbox.com>
* [ios, macos] Distinguish between viewing distance and altitudeMinh Nguyễn2018-10-011-2/+31
| | | | +[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.
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-141-4/+4
|
* [ios, macos] Fail gracefully on invalid coordinatesMinh Nguyễn2017-04-061-11/+15
| | | | Invalid coordinates no longer cause an exception to be raised immediately when used in conversion methods and model objects. Instead, the appropriate invalid values are used, consistent with MapKit. Exceptions are still raised when invalid model objects are used with the map.
* [darwin] Use MGLLatLngFromLocationCoordinate2D where appropriateJohn Firebaugh2017-04-061-2/+3
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2Minh Nguyễn2017-02-211-0/+19
|\
| * [ios, macos] Short-circuit redundant camera changesMinh Nguyễn2017-02-181-0/+19
| | | | | | | | | | | | | | | | Avoid canceling transitions (and triggering preexisting completion handlers) until we get a chance to ensure that a new transition really does have to begin. Consistently avoid mbgl transitions for redundant camera changes. Upon bailing, schedule the completion handler to run asynchronously on a delay equivalent to the requested animation duration. Added a “functional” equality method to MGLMapCamera that avoids trivial differences. Fixed invocations of XCTAssertEqualWithAccuracy() that incorrectly expressed the accuracy as a number of digits rather than a scalar tolerance.
* | [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-4/+4
|/
* [ios] Add description strings to constituent classesJason Wray2016-03-101-1/+1
|
* [ios, osx] Consolidate remaining files in platform/{ios,osx}John Firebaugh2016-02-121-0/+125