summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLVectorSource.h
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-15 15:09:02 +0200
committerFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-18 14:26:04 +0200
commit5d307d098b29d2cd0a18db802e4199606d0689af (patch)
tree6c91bf9d0fd792d3689eb0e9e9e28d9c2038eb14 /platform/darwin/src/MGLVectorSource.h
parent106dd460fe4f09336470ee46e3e9759d331ec20c (diff)
downloadqtlocation-mapboxgl-5d307d098b29d2cd0a18db802e4199606d0689af.tar.gz
[ios, macos] Fixes #5975 Add source getter to MGLStyle
Diffstat (limited to 'platform/darwin/src/MGLVectorSource.h')
-rw-r--r--platform/darwin/src/MGLVectorSource.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLVectorSource.h b/platform/darwin/src/MGLVectorSource.h
index 28322e289e..416ed1da9a 100644
--- a/platform/darwin/src/MGLVectorSource.h
+++ b/platform/darwin/src/MGLVectorSource.h
@@ -1,5 +1,22 @@
#import "MGLSource.h"
+/**
+ A vector tile source. Tiles must be in Mapbox Vector Tile format.
+
+ @see <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources-vector">the style specification</a>
+ */
@interface MGLVectorSource : MGLSource
+@property (nonatomic, readonly, copy) NSURL *URL;
+
+/**
+ Initializes and returns a vector source from a remote url.
+
+ @param sourceIdentifier The source identifier.
+ @param URL A remote URL holding the vector source data.
+
+ @return An `MGLVectorSource`.
+ */
+- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier URL:(NSURL *)url;
+
@end