setPoiCategoriesVisibility static method
- List<
String> categoryIds, - VisibilityState visibility
Sets visibility for embedded carto POI categories (points of interest that are visible on the map, by default).
For HERE standard map schemes all available POI categories are visible by default for each selected map scheme. Note that not all POI categories are available for all map schemes.
Based on the given list of categories the number of shown carto POIs can be reduced.
To find all possible POI category strings look into here.sdk.search.PlaceCategory.
Note that it is enough to hide a main category like "100" (eat-and-drink) to also affect
sub categories such as "100-1000" (eat-and-drink-restaurant)
and "100-1100" (eat-and-drink-coffee-tea). To enable a sub category, also the related
main categories need have the VISIBLE state.
The POI visibility is a property of the map data itself. Once set it will be applied to all HERE standard map schemes and the selected categories will remain even when switching a map scheme.
-
categoryIdsA list of POI categories that a visibility state is set for. -
visibilityA selected visibility for specified POI categories.
Implementation
static void setPoiCategoriesVisibility(List<String> categoryIds, VisibilityState visibility) => $prototype.setPoiCategoriesVisibility(categoryIds, visibility);