#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 The style specification. */ @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