THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

POI layers visibility

The POI layer is a database of certain POIs displayed on the map allowing you to display on the map various categories of POI’s with corresponding labels and icons. As you can see in the documentation of the POI layers service, as a user you can:

  • Display a map with a layer which contains only certain, filtered kinds of POIs as a set of a label and icon.
  • Turn on and off POI categories by means of category names.
  • Separate the map layer, which can be used as an overlay to a basic map.

Sample use case: You would like to plan a trip to Amsterdam and visit museums in the city center. Thanks to POI layer filtering you would be able to filter on the map POIs from the Museum category with corresponding labels and icons.

Sample use case: You would like to replace the default source layer of POI data provided by the Maps SDK with POI categories chosen by you to achieve a clean and readable map including POIs relevant to your business needs.

To show the layer containing POIs use the following code:

tomtomMap.poiSettings.show()

To hide the layer containing POIs use the following code:

tomtomMap.poiSettings.hide()

To show the POIs whose categories match the provided category names use the following code:

// PARK_CATEGORY = "Park & Recreation Area"
tomtomMap.poiSettings.showCategories(listOf(PARK_CATEGORY))

image

All POI

image

No POI

image

Parks