NTCartoOnlineVectorTileLayer
@interface NTCartoOnlineVectorTileLayer : NTCartoVectorTileLayer
Specialized online vector tile layer that connects to Carto online tile server. This layer is intended as a ‘shortcut’ to make using Carto online service and vector tiles as simple as possible.
-
Constructs a CartoOnlineVectorTileLayer object from a specificed base map style.
Declaration
Objective-C
- (id)initWithStyle:(enum NTCartoBaseMapStyle)style;
Parameters
style
The style to use for the layer.
-
Constructs a CartoOnlineVectorTileLayer object from a source name and specified base map style.
Declaration
Objective-C
- (id)initWithSource:(NSString *)source style:(enum NTCartoBaseMapStyle)style;
Parameters
source
The tile source name. For example “carto.streets”. Note that only ‘carto’ sources can be used with this constructor.
style
The style to use for the layer.
-
Constructs a CartoOnlineVectorTileLayer object from a source name and style asset package. Style asset package defines visual style of the map and must be compatible with the source.
Declaration
Objective-C
- (id)initWithSource:(NSString *)source styleAssetPackage:(NTAssetPackage *)styleAssetPackage;
Parameters
source
The tile source name. For example “carto.streets”.
styleAssetPackage
The style asset package (usually a zipped file or an asset)
-
Creates a data source for the specified base map style.
Declaration
Objective-C
+ (NTTileDataSource *)createDataSource:(enum NTCartoBaseMapStyle)style;
Parameters
style
The style to use for the layer.
Return Value
The new vector tile decoder configured for the style.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;