GetLayerCategoriesParams
Last updated
Was this helpful?
Last updated
Was this helpful?
The parameters for getting categories from a layer, passed to the method.
layerId:
string
The ID of the layer to get categories from.
attribute:
string
The attribute to use for categorization.
optional
limit:number
The maximum number of categories to return.
Attribute filters for the features to include when calculating the categories.
The spatial boundary for the features to include when calculating the categories.
Configuration for filtering and aggregating values while preserving the full set of categories in the results.
This is particularly useful when you want to compare different subsets of data while maintaining consistent categories. For example:
Show all building types in a city, but only count recent buildings in each type
Keep all neighborhood categories but only sum up residential square footage
Unlike top-level filters which affect both what categories appear AND their values, filters in this configuration only affect the values while keeping all possible categories in the results.
optional
filters:
optional
boundary:
optional
values: