Hello everyone,
I'm working with Arcgis JS API 4.25.
I'm trying to filter a FeatureLayer based on this concept:
Apply effects to features
Since I'm using a SceneView, I can't use featureEffect.filter so i'm using filter directly on the featureLayerView, and it seems to work just fine.
The issue I have is with the buffer. The example works fine

But when I try to replicate it, there is this strange gap between the visual of the geometry and the actual geometry used to filter the features:

I'm doing nothing more than the example do :
function updateFilter() {
let featureFilter = null;
if (filterGeometry) {
let bufferGeometry = filterGeometry;
if (distance > 0 && filterGeometry) {
bufferGeometry = geometryEngine.buffer(filterGeometry, distance, unit);
bufferLayer.graphics.getItemAt(0).geometry = bufferGeometry;
} else {
bufferLayer.graphics.getItemAt(0).geometry = null;
}
featureFilter = {
geometry: bufferGeometry,
spatialRelationship: spatialRel,
distance,
units: unit,
};
}
if (featureLayerView) featureLayerView.filter = featureFilter;
}Do you have any ideas what would be the problem ?
I'm guessing maybe something wrong about a wkid ?