summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLForegroundStyleLayer.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-10-05 00:50:48 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-10-06 15:19:38 -0700
commit0acf1ed5969cdf8ff428beea1b5cdc8d64bfc10f (patch)
tree0610d378b7fb7a5fbd2715775f0696304f74e187 /platform/darwin/src/MGLForegroundStyleLayer.h
parent50d2c01d7d0bad1aa1dee1a028e06f49f33c9b4c (diff)
downloadqtlocation-mapboxgl-0acf1ed5969cdf8ff428beea1b5cdc8d64bfc10f.tar.gz
[ios, macos] Renamed files to match renamed classes
Diffstat (limited to 'platform/darwin/src/MGLForegroundStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLForegroundStyleLayer.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLForegroundStyleLayer.h b/platform/darwin/src/MGLForegroundStyleLayer.h
new file mode 100644
index 0000000000..cb98876810
--- /dev/null
+++ b/platform/darwin/src/MGLForegroundStyleLayer.h
@@ -0,0 +1,45 @@
+#import <Foundation/Foundation.h>
+
+#import "MGLStyleLayer.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class MGLSource;
+
+/**
+ `MGLForegroundStyleLayer` is an abstract superclass for style layers whose
+ content is defined by an `MGLSource` object.
+
+ Do not create instances of this class directly, and do not create your own
+ subclasses of this class. Instead, create instances of `MGLRasterStyleLayer`
+ and the concrete subclasses of `MGLVectorStyleLayer`.
+ */
+@interface MGLForegroundStyleLayer : MGLStyleLayer
+
+#pragma mark Initializing a Style Layer
+
+/**
+ Returns a foreground style layer initialized with an identifier and source.
+
+ After initializing and configuring the style layer, add it to a map view’s
+ style using the `-[MGLStyle addLayer:]` or
+ `-[MGLStyle insertLayer:belowLayer:]` method.
+
+ @param identifier A string that uniquely identifies the source in the style to
+ which it is added.
+ @param source The source from which to obtain the data to style. If the source
+ has not yet been added to the current style, the behavior is undefined.
+ @return An initialized foreground style layer.
+ */
+- (instancetype)initWithIdentifier:(NSString *)identifier source:(MGLSource *)source NS_DESIGNATED_INITIALIZER;
+
+#pragma mark Specifying a Style Layer’s Content
+
+/**
+ Identifier of the source from which the receiver obtains the data to style.
+ */
+@property (nonatomic, readonly, nullable) NSString *sourceIdentifier;
+
+@end
+
+NS_ASSUME_NONNULL_END