summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLRendererConfiguration.h
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-11-21 13:56:41 -0500
committerGitHub <noreply@github.com>2018-11-21 13:56:41 -0500
commitfd4b4701587c90271978b5f24d9a9355989182e0 (patch)
tree676ad30cd48e87b3aa53aceab3cfd5973ce82a38 /platform/darwin/src/MGLRendererConfiguration.h
parent7d5be980e287c979119b06c73d071f2daaea1b3d (diff)
downloadqtlocation-mapboxgl-fd4b4701587c90271978b5f24d9a9355989182e0.tar.gz
[ios] Adds support for MGLCollisionBehaviorPre4_0 in NSUserDefaults (#13426)
Diffstat (limited to 'platform/darwin/src/MGLRendererConfiguration.h')
-rw-r--r--platform/darwin/src/MGLRendererConfiguration.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLRendererConfiguration.h b/platform/darwin/src/MGLRendererConfiguration.h
index d5b6527d7e..ea13582488 100644
--- a/platform/darwin/src/MGLRendererConfiguration.h
+++ b/platform/darwin/src/MGLRendererConfiguration.h
@@ -1,3 +1,4 @@
+#import "MGLFoundation.h"
#import <Foundation/Foundation.h>
#import <mbgl/storage/default_file_source.hpp>
#import <mbgl/renderer/mode.hpp>
@@ -8,6 +9,7 @@ NS_ASSUME_NONNULL_BEGIN
The MGLRendererConfiguration object represents configuration values for the
renderer.
*/
+MGL_EXPORT
@interface MGLRendererConfiguration : NSObject
/** Returns an instance of the current renderer configuration. */
@@ -39,7 +41,9 @@ NS_ASSUME_NONNULL_BEGIN
A Boolean value indicating whether symbol layers may enable per-source symbol
collision detection.
- Set `MGLCollisionBehaviorPre4_0` in your containing app's Info.plist.
+ Set `MGLCollisionBehaviorPre4_0` in your containing app's Info.plist or by using
+ `[[NSUserDefaults standardUserDefaults] setObject:@(YES) forKey:@"MGLCollisionBehaviorPre4_0"]`.
+ If both are set, the value from `NSUserDefaults` takes priority.
Setting this property to `YES` in the plist results in symbol layers only running
collision detection against other symbol layers that are part of the same source.