TTPOIDisplay
Objective-C
@interface TTPOIDisplay : NSObject
Swift
class TTPOIDisplay : NSObject
Provides access to the classes allowing manipulation of the POIs (Points Of Interest) displayed on the Map. @BETA 03.2021
-
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 requires 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.