Optionalfilters?: { categories: ValuesFilter<FilterablePOICategory> }Filters for which POI categories are displayed.
Categories or category groups to show or hide, per FilterShowMode.
// Show only restaurants and hotels
categories: {
show: 'only',
values: ['RESTAURANT', 'HOTEL_OR_MOTEL']
}
// Hide parking
categories: {
show: 'all-except',
values: ['PARKING_GARAGE', 'OPEN_CAR_PARKING_AREA']
}
// Show only food-related POIs
categories: {
show: 'only',
values: ['FOOD_DRINKS_GROUP']
}
Optionalicon?: POIIconConfigCustom icons per POI category, in place of the style's own.
Optionallabel?: POILabelConfigThe look of the POI labels.
OptionalmicroMarkers?: { visible?: boolean }The small dot markers the style draws for low-priority POIs at high zoom.
Optionalvisible?: booleanWhether the micro markers are shown, never while the POIs are hidden. If unset, they stay as the style ships them.
OptionalminZoom?: numberThe zoom level from which POIs appear. The micro markers keep their own. By default, the style's own, 6.
OptionalsizeFactor?: numberThe size multiplier for the POI icons and their labels, 1 being the style's own. It composes with
the StylingFoundationsModule labels.sizeFactor and symbols.sizeFactor, which reach the POIs too.
Optionalvisible?: booleanWhether the POI layers are visible.
OptionalzoomShift?: numberThe shift of the zoom at which each POI appears. Positive is later and sparser, negative earlier and denser.
POIs are part of the base map vector tiles and include businesses, landmarks and other points of interest. This configuration controls which categories are visible.
// Show only restaurants
const config: POIsModuleConfig = {
visible: true,
filters: {
categories: {
show: 'only',
values: ['RESTAURANT']
}
}
};
// Hide parking-related POIs
const noParkingConfig: POIsModuleConfig = {
filters: {
categories: {
show: 'all-except',
values: ['PARKING_GROUP']
}
}
};
// Show only food and shopping
const limitedConfig: POIsModuleConfig = {
filters: {
categories: {
show: 'only',
values: ['FOOD_DRINKS_GROUP', 'SHOPPING_GROUP']
}
}
};
The options of the POIsModule, which control the visibility and filtering of the points of interest in the map style.