TTMapSourceVisitor

Objective-C

@protocol TTMapSourceVisitor <NSObject>

Swift

protocol TTMapSourceVisitor : NSObjectProtocol

TTMapSourceVisitor protocol that represents map source visitor.

  • Provides ID of source which can not be found.

    Declaration

    Objective-C

    - (void)cantFindSource:(NSString *_Nonnull)ID;

    Swift

    optional func cantFindSource(_ ID: String)

    Parameters

    ID

    ID of Source.

  • Provides TTMapGeoJSONSource of source.

    Declaration

    Objective-C

    - (void)visitGeoJSONSource:(TTMapGeoJSONSource *_Nonnull)mapGeoJSONSource;

    Swift

    optional func visit(_ mapGeoJSONSource: TTMapGeoJSONSource)

    Parameters

    mapGeoJSONSource

    TTMapGeoJSONSource.

  • Provides TTMapImageSource of source.

    Declaration

    Objective-C

    - (void)visitImageSource:(TTMapImageSource *_Nonnull)mapImageSource;

    Swift

    optional func visit(_ mapImageSource: TTMapImageSource)

    Parameters

    mapImageSource

    TTMapImageSource.