I am using different symbols for current and historic features. It doesn't look like there is any effect that can be used to swap out symbols. If I can use a featureEffect to make any non-current feature disappear before the applyEdits can catch up then that should resolve the temporary duplicate that I'm seeing sometimes.
I tried out the code but it does not look like featureEffect is having any effect on the symbol. As a sanity check I used the follow code to make all features transparent but there seemed to be no change in the appearance of the symbols.
const includedEffect = "opacity(10%)";
that.view.whenLayerView(globals.vehicleFeatureLayer).then(function(layerView) {
layerView.FeatureEffect = new FeatureEffect({
filter: new FeatureFilter({
where: "1=1"
}),
includedEffect: includedEffect,
excludedEffect: "grayscale(25%) blur(5px) opacity(25%)"
});
})
As you can see the features below are fully opaque.
I verified in Dev Console that the posted code was run.
I can't see where I might be using featureEffect wrong.
I'm using ArcGIS Core 4.24.7
Any help is appreciated.