TTMapStyleConfigurationBuilder
Objective-C
@interface TTMapStyleConfigurationBuilder : NSObject
Swift
class TTMapStyleConfigurationBuilder : NSObject
TTMapStyleConfigurationBuilder - Creates layer set configuration based on existing map of properties for individual layer sets.
-
Create query builder with styleURL
Declaration
Objective-C
+ (TTMapStyleConfigurationBuilder *_Nonnull)createWithStyleURL: (NSString *_Nonnull)styleURL;
Swift
class func create(withStyleURL styleURL: String) -> TTMapStyleConfigurationBuilder
Parameters
styleURL
The url containing a style
Return Value
TTMapStyleConfigurationBuilder
-
Create query builder with json
Declaration
Objective-C
+ (TTMapStyleConfigurationBuilder *_Nonnull)createWithStyleJSON: (NSString *_Nonnull)json;
Swift
class func create(withStyleJSON json: String) -> TTMapStyleConfigurationBuilder
Parameters
json
The json containing a style
Return Value
TTMapStyleConfigurationBuilder
-
Adds a layerSetProperties and layerSetSourceName to the query.
Declaration
Objective-C
- (TTMapStyleConfigurationBuilder *_Nonnull) withLayerSetProperties:(TTLayerSetProperties *_Nonnull)layerSetProperties withLayerSetSourceNameKey: (LayerSetSourceNameKey _Nonnull)layerSetSourceName;
Swift
func withLayerSetProperties(_ layerSetProperties: TTLayerSetProperties, withLayerSetSourceNameKey layerSetSourceName: LayerSetSourceNameKey) -> TTMapStyleConfigurationBuilder
Parameters
layerSetProperties
Information about the layer
layerSetSourceName
Name of the layer set
Return Value
TTMapStyleConfigurationBuilder
-
Baseed on provided data builds query object
Declaration
Objective-C
- (TTMapStyleConfiguration *_Nonnull)build;
Swift
func build() -> TTMapStyleConfiguration
Return Value
return TTMapStyleConfiguration