diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-12-23 15:01:00 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-05 10:22:10 -0800 |
commit | b6f7d03e5d4cb632dd3c59e3c6451e33fadca945 (patch) | |
tree | c88f45d4f752ef4ce0db8275e19a51bd73861664 /platform/darwin/src/MGLStyle.h | |
parent | 188a61af55d54a58740b77d572b442fc298bdb0f (diff) | |
download | qtlocation-mapboxgl-b6f7d03e5d4cb632dd3c59e3c6451e33fadca945.tar.gz |
[ios, macos] Sources, layers properties are immutable
If you need a mutable array of layers, use -mutableArrayValueForKey:.
Diffstat (limited to 'platform/darwin/src/MGLStyle.h')
-rw-r--r-- | platform/darwin/src/MGLStyle.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h index cc87d7defd..58bc57b4fa 100644 --- a/platform/darwin/src/MGLStyle.h +++ b/platform/darwin/src/MGLStyle.h @@ -189,7 +189,7 @@ static const NSInteger MGLStyleDefaultVersion = 9; /** A set containing the style’s sources. */ -@property (nonatomic, strong) NS_MUTABLE_SET_OF(MGLSource *) *sources; +@property (nonatomic, strong) NS_SET_OF(MGLSource *) *sources; /** Returns a source with the given identifier in the current style. @@ -240,7 +240,7 @@ static const NSInteger MGLStyleDefaultVersion = 9; The layers included in the style, arranged according to their back-to-front ordering on the screen. */ -@property (nonatomic, strong) NS_MUTABLE_ARRAY_OF(MGLStyleLayer *) *layers; +@property (nonatomic, strong) NS_ARRAY_OF(MGLStyleLayer *) *layers; /** Returns a style layer with the given identifier in the current style. |