TTPOIDisplay

Objective-C

@interface TTPOIDisplay : NSObject

Swift

class TTPOIDisplay : NSObject

Public Preview

This is under Public Preview and subject to change by the end of 2021.03. More information is available at: https://developer.tomtom.com/public-preview

Provides access to the classes allowing manipulation of the POIs (Points Of Interest) displayed on the Map.

  • Turns on the Rich POI layer which provides more total POIs. This method is only available for styles compatible with POI Tiles. That means styles from Style Merger which contain a poi parameter and legacy styles that contain an appropriate source layer. Using this method with an invalid style will produce an error log.

    IMPORTANT: This mode uses both Vector Tiles and POI Tiles which require more requests to be sent and this result is higher in cost.

    Please see https://developer.tomtom.com/maps-api/maps-api-documentation/map-styles for more information.

    Declaration

    Objective-C

    - (void)turnOnRichPoiLayer;

    Swift

    func turnOnRichPoiLayer()
  • Changing the POI source is only available for styles from the Style Merger containing a poi parameter, and legacy styles that contain an appropriate source layer. Using this method with an invalid style will produce an error log.

    Declaration

    Objective-C

    - (void)turnOffRichPoiLayer;

    Swift

    func turnOffRichPoiLayer()
  • Shows the layer containing POIs. POIs hidden by the category filter will not be visible.

    Declaration

    Objective-C

    - (void)show;

    Swift

    func show()
  • Hide the layer containing POIs.

    Declaration

    Objective-C

    - (void)hide;

    Swift

    func hide()
  • Show the POIs whose categories match the provided category names.

    Declaration

    Objective-C

    - (void)show:(nonnull NSArray<NSString *> *)poiCategories;

    Swift

    func show(_ poiCategories: [String])

    Parameters

    poiCategories

    Array of names of POI categories.

  • Hide the POIs whose categories match the provided category names.

    Declaration

    Objective-C

    - (void)hide:(nonnull NSArray<NSString *> *)poiCategories;

    Swift

    func hide(_ poiCategories: [String])

    Parameters

    poiCategories

    Array of names of POI categories.