laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000167739
EnvoiMay 22, 2024
Dernière modificationDecember 6, 2024
S’applique àArcGIS Maps SDK for JavaScript
Version trouvée4.29
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutAs Designed

Informations supplémentaires

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.

Solution de contournement

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. 

Étapes pour reproduire

ID de bogue: BUG-000167739

Logiciel:

  • ArcGIS Maps SDK for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement