summaryrefslogtreecommitdiff
path: root/platform/macos/app/MGLStyle+MBXAdditions.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-12-29 23:24:22 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-06 07:47:43 -0800
commit428c0fdf70d08dfe433058a66a61bf9c4fb93d9d (patch)
tree52db6aec1b43c44f76ec48a98690200ed3be41bb /platform/macos/app/MGLStyle+MBXAdditions.h
parent4700c72e1501aca9509d9e051b1afc2d2112597e (diff)
downloadqtlocation-mapboxgl-428c0fdf70d08dfe433058a66a61bf9c4fb93d9d.tar.gz
[macos] Arrange layers top to bottom in sidebar
Implemented a reversedLayers property on MGLStyle based on the layers property.
Diffstat (limited to 'platform/macos/app/MGLStyle+MBXAdditions.h')
-rw-r--r--platform/macos/app/MGLStyle+MBXAdditions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/macos/app/MGLStyle+MBXAdditions.h b/platform/macos/app/MGLStyle+MBXAdditions.h
new file mode 100644
index 0000000000..dcaf42af28
--- /dev/null
+++ b/platform/macos/app/MGLStyle+MBXAdditions.h
@@ -0,0 +1,7 @@
+#import <Mapbox/Mapbox.h>
+
+@interface MGLStyle (MBXAdditions)
+
+@property (nonatomic, strong) NS_ARRAY_OF(__kindof MGLStyleLayer *) *reversedLayers;
+
+@end