SITMapViewController

Objective-C

@protocol SITMapViewController <NSObject>

Swift

protocol SITMapViewController : NSObjectProtocol

Class that acts as a controller for SITMapView and manages user interactions and map data.

  • Set the SITMapViewDirectionsOptions that will be used to calculate the following direction requests.

    Declaration

    Objective-C

    - (void)setDirectionsOptions:(nonnull SITMapViewDirectionsOptions *)options;

    Swift

    func setDirectionsOptions(_ options: SITMapViewDirectionsOptions)

    Parameters

    options

    SITMapViewDirectionsOptions instance.

  • Selects the given POI in the map.

    Declaration

    Objective-C

    - (void)selectPoi:(nonnull NSString *)identifier;

    Swift

    func selectPoi(_ identifier: String)

    Parameters

    identifier

    Identifier of the POI you want to select.

  • Starts navigating to the given POI.

    Declaration

    Objective-C

    - (void)navigateToPoi:(nonnull NSString *)identifier;

    Swift

    func navigate(toPoi identifier: String)

    Parameters

    identifier

    Identifier of the POI you want to navigate to.

  • Starts navigating to the given POI.

    Declaration

    Objective-C

    - (void)navigateToPoi:(nonnull NSString *)identifier
        accessibilityMode:(SITAccessibilityMode)accessibilityMode;

    Swift

    func navigate(toPoi identifier: String, accessibilityMode: SITAccessibilityMode)

    Parameters

    identifier

    Identifier of the POI you want to navigate to.

    accessibilityMode

    SITAccessibilityMode that you want use in your navigation.

  • Sets the UI language based on the given ISO 639-1 code. Checkout the Situm docs to see the list of supported languages: https://situm.com/docs/query-params/.

    Declaration

    Objective-C

    - (void)setLanguage:(nonnull NSString *)language;

    Swift

    func setLanguage(_ language: String)

    Parameters

    language

    Language ISO 639-1 code.