summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLVectorSource.h
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-09-22 17:30:47 -0700
committerGitHub <noreply@github.com>2016-09-22 17:30:47 -0700
commit3ddb8dfc86753120d2ea2c3befdf2430c1c56562 (patch)
treebc241d8c66ea7f78ae4728f9644673e8994e1295 /platform/darwin/src/MGLVectorSource.h
parent08c08f6705d168f0bc7cde251cdacb2c4a53bb7a (diff)
downloadqtlocation-mapboxgl-3ddb8dfc86753120d2ea2c3befdf2430c1c56562.tar.gz
[ios, macos] Add tile template option to raster and vector sources
A new MGLTileSet class that wraps all available core Tileset options can be created and passed into the sources. The sources pass that tileset object along to core.
Diffstat (limited to 'platform/darwin/src/MGLVectorSource.h')
-rw-r--r--platform/darwin/src/MGLVectorSource.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLVectorSource.h b/platform/darwin/src/MGLVectorSource.h
index 05e041511e..2402208499 100644
--- a/platform/darwin/src/MGLVectorSource.h
+++ b/platform/darwin/src/MGLVectorSource.h
@@ -1,4 +1,9 @@
#import "MGLSource.h"
+#import "MGLTypes.h"
+
+@class MGLTileSet;
+
+NS_ASSUME_NONNULL_BEGIN
/**
A vector tile source. Tiles must be in Mapbox Vector Tile format.
@@ -9,6 +14,7 @@
@interface MGLVectorSource : MGLSource
@property (nonatomic, readonly, copy) NSURL *URL;
+@property (nonatomic, readonly, nullable) MGLTileSet *tileSet;
/**
Initializes and returns a vector source from a remote url.
@@ -20,4 +26,8 @@
*/
- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier URL:(NSURL *)url;
+- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier tileSet:(MGLTileSet *)tileSet;
+
@end
+
+NS_ASSUME_NONNULL_END