TomTom Maps for JavaScript
    Preparing search index...

    Type Alias POICategoryGroup

    POICategoryGroup: keyof typeof poiCategoryGroups

    The name of a POI category group.

    The groups are predefined sets of related POI categories, for convenient filtering. Each group contains multiple MapStylePOICategory values that share a common theme. With a group, a single filter value shows or hides multiple related POI types.

    Filter to show only food-related POIs:

    poisModule.updateConfig({ filters: { categories: { show: 'only', values: ['FOOD_DRINKS_GROUP'] } } });
    

    Hide parking and gas stations:

    poisModule.updateConfig({
    filters: { categories: { show: 'all-except', values: ['PARKING_GROUP', 'GAS_STATIONS_GROUP'] } }
    });

    Combine multiple groups for tourism use case:

    const tourismFilter: ValuesFilter<FilterablePOICategory> = {
    show: 'only',
    values: [
    'HOLIDAY_TOURISM_GROUP',
    'ACCOMMODATION_GROUP',
    'FOOD_DRINKS_GROUP',
    'ENTERTAINMENT_GROUP'
    ]
    };