MSFMapTilerOnlineTileDataSource
Objective-C
@interface MSFMapTilerOnlineTileDataSource : MSFTileDataSource
Swift
class MSFMapTilerOnlineTileDataSource : MSFTileDataSource
An online tile data source that connects to MapTiler Cloud tile server, meant for vector tiles (raster with a custom service URL). Be sure to read the Terms and Conditions of your MapTiler service provider to see if the service is available for your application. Note: this class is experimental and may change or even be removed in future SDK versions.
-
Constructs a MapTilerOnlineTileDataSource object.
Declaration
Objective-C
- (id)initWithKey:(NSString *)key;Swift
init!(key: String!)Parameters
keyThe access key (access token) to use registered with MapTiler.
-
Returns the custom backend service URL.
Declaration
Objective-C
- (NSString *)getCustomServiceURL;Swift
func getCustomServiceURL() -> String!Return Value
The custom backend service URL. If this is not defined, an empty string is returned.
-
Sets the custom backend service URL. The custom URL may contain tag “{key}” which will be substituted with the set access key.
Declaration
Objective-C
- (void)setCustomServiceURL:(NSString *)serviceURL;Swift
func setCustomServiceURL(_ serviceURL: String!)Parameters
serviceURLThe custom backend service URL to use. If this is empty, then the default service is used.
-
Returns the current timeout value.
Declaration
Objective-C
- (int)getTimeout;Swift
func getTimeout() -> Int32Return Value
The current timeout value in seconds. If negative, then default platform-specific timeout is used.
-
Sets the current timeout value.
Declaration
Objective-C
- (void)setTimeout:(int)timeout;Swift
func setTimeout(_ timeout: Int32)Parameters
timeoutThe new timeout value in seconds. If negative, then default platform-specific timeout is used.
-
Undocumented
Declaration
Objective-C
- (MSFTileData *)loadTile:(MSFMapTile *)mapTile;Swift
func load(_ mapTile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(MSFTileData*)loadTileSwigExplicitMSFMapTilerOnlineTileDataSource: (MSFMapTile*)mapTile;Swift
func loadTileSwigExplicitMSFMapTilerOnlineTileDataSource(_ mapTile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()