diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2019-01-22 15:42:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 15:42:28 -0800 |
commit | ca129e0c79c60db57c7ad3144aad3f4293dab8cd (patch) | |
tree | 05a70518818bff547225ef629e9a9c695af906ea /platform/darwin | |
parent | b460efdf00092797446570389a6c9afa230da162 (diff) | |
download | qtlocation-mapboxgl-ca129e0c79c60db57c7ad3144aad3f4293dab8cd.tar.gz |
[ios, macos] MGLMapView logging improvements. (#13776)
Added NSEdgeInsets to NSString function to improve the debugging on macOS.
Added debug logs to MGLMapView.
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLLoggingConfiguration_Private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLLoggingConfiguration_Private.h b/platform/darwin/src/MGLLoggingConfiguration_Private.h index 34e999ca72..3acc0291c0 100644 --- a/platform/darwin/src/MGLLoggingConfiguration_Private.h +++ b/platform/darwin/src/MGLLoggingConfiguration_Private.h @@ -4,6 +4,12 @@ NS_INLINE NSString *MGLStringFromBOOL(BOOL value) { return value ? @"YES" : @"NO"; } +#if TARGET_OS_OSX +NS_INLINE NSString *MGLStringFromNSEdgeInsets(NSEdgeInsets insets) { + return [NSString stringWithFormat:@"{ top: %f, left: %f, bottom: %f, right: %f", insets.top, insets.left, insets.bottom, insets.right]; +} +#endif + #ifdef MGL_LOGGING_DISABLED #define MGLLogInfo(...) |