hi everyone,
I'm in the process of developing a TypeScript web application that uses a spatial filter. I don't understand why the option "filter" on the featureLayerView is not offered at all.
here is my code:
view.map.layers.forEach((layer) => {
view.whenLayerView(layer).then((layerView) => {
if (layer.type === "feature") {
const featureLayerView = layerView;
let selectedFilter = "contains";
const featureFilter = {
geometry: geometry,
spatialRelationship: selectedFilter
};
}
})
.catch(console.error);
});
For any hint, I'm very grateful!