- fixes #5959: MGLBaseStyleLayer docs - fixes #5960: MGLSource & subclasses docs - fixes #6467: concrete layer subclass docs - move Core Graphics include - slight code & template cleanups - add ./documentation to git ignores
41 lines
1.1 KiB
Objective-C
41 lines
1.1 KiB
Objective-C
#import "MGLSource.h"
|
|
#import "MGLTypes.h"
|
|
|
|
@class MGLTileSet;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
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;
|
|
@property (nonatomic, readonly, nullable) MGLTileSet *tileSet;
|
|
|
|
/**
|
|
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;
|
|
|
|
/**
|
|
Initializes a source with the given identifier, tile size, and tile
|
|
URL template set.
|
|
|
|
@param sourceIdentifier A string that uniquely identifies the source.
|
|
@param tileSet A tile set describing where to download tiles.
|
|
*/
|
|
- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier tileSet:(MGLTileSet *)tileSet;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|