You can decide which features in the WorkingSet
of a layer to visualize, by configuring a feature filter on a FeatureLayer
.
A Feature filter is a function that accepts a LuciadRIA Feature
, and returns true
if the map must show the Feature
.
To set the Feature filter, use the filter
property on the FeatureLayer
:
samples/selection/main.tsx
)
citiesLayer.filter = (feature): boolean => {
return feature.properties.TOT_POP <= minPopulation;
}
The configuration of a feature filter doesn’t change the working set of the feature layer. The client still queries all the data from the server, and loads it into memory. If you want to limit the amount of data that the client queries, you must re-configure the |