sdk-maps / com.tomtom.online.sdk.map.settings.poi / PoiSettings

PoiSettings

@PublicPreview("2021.03") interface PoiSettings

Advanced settings for POIs (Points of Interest) manipulation. To obtain this interface, call TomtomMap.getPoiLayerSettings.

Functions

hide

abstract fun hide(): Unit

Hides the layer containing POIs.

hideCategories

abstract fun hideCategories(categories: List<String>): Unit

Hide the POIs whose categories match as provided by the category names.

show

abstract fun show(): Unit

Shows the layer containing POIs.

showCategories

abstract fun showCategories(categories: List<String>): Unit

Shows the POIs whose categories match as provided by the category names.

turnOffRichPoiLayer

abstract fun turnOffRichPoiLayer(): Unit

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.

turnOnRichPoiLayer

abstract fun turnOnRichPoiLayer(): Unit

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.