laptop and a wrench

Bug

IncludedEffect property applies the effect to all the non-selected features after the selection is cleared in ArcGIS Maps SDK for JavaScript v4.29 application.

ArcGIS Maps SDK for JavaScript
Bug ID Number BUG-000167739
SubmittedMay 22, 2024
Last ModifiedDecember 6, 2024
Applies toArcGIS Maps SDK for JavaScript
Version found4.29
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

The description is hard to follow in this issue. But the issue is indicating that the layer is showing every feature when the layerView.filter.objectIds is set to an empty array. Instead the user thinks it must hide every feature. This feature is working as intended and matches the server behavior. If the user does not want to show any features when the objectIds is an empty array, set the filter.where clause to 1 = 0. This ensured no features are visible. The FeatureFilter document to describe this behavior will be updated. Create an issue for JS API SDK to follow up on the documentation status.

Workaround

As a workaround, the code is modified to set FeatureEffect as null if no features are selected.

Sample code: https://codepen.io/RiddhiG/pen/eYaZbgR. 

Steps to Reproduce

Bug ID: BUG-000167739

Software:

  • ArcGIS Maps SDK for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options