TTStyleManager

Objective-C

@protocol TTStyleManager <NSObject>

Swift

protocol TTStyleManager : NSObjectProtocol

TTStyleManager protocol that represents map style manager.

  • Completion of load style from URL NSString.

    Declaration

    Objective-C

    - (void)loadStyleFromUrl:(NSString *_Nonnull)url
              withCompletion:(void (^_Nullable)(void))complete;

    Swift

    func loadStyle(fromUrl url: String, withCompletion complete: (() -> Void)? = nil)

    Parameters

    url

    url NSString.

    complete

    callback.

  • Completion of load style from JSON NSString.

    Declaration

    Objective-C

    - (void)loadStyleFromJson:(NSString *_Nonnull)json
               withCompletion:(void (^_Nullable)(void))complete;

    Swift

    func loadStyle(fromJson json: String, withCompletion complete: (() -> Void)? = nil)

    Parameters

    json

    json NString.

    complete

    callback.

  • Completion of load style from TTMapStyleConfiguration object.

    Declaration

    Objective-C

    - (void)loadStyleConfiguration:(TTMapStyleConfiguration *_Nonnull)configuration
                    withCompletion:(void (^_Nullable)(void))complete;

    Swift

    func load(_ configuration: TTMapStyleConfiguration, withCompletion complete: (() -> Void)? = nil)

    Parameters

    configuration

    configuration object..

    complete

    callback.