| Número de ID del error |
BUG-000167739 |
| Enviado | May 22, 2024 |
| Última modificación | December 6, 2024 |
| Relacionado con | ArcGIS Maps SDK for JavaScript |
| Versión encontrada | 4.29 |
| Sistema operativo | Windows OS |
| Versión de sistema operativo | 10.0 64 Bit |
| Estado | As Designed
Tras revisión realizada por el equipo de desarrollo, se ha determinado que este comportamiento es acorde con lo designado. Consulte los detalles en la sección Información adicional.
|
Información adicional
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.
Solución alternativa
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.
Pasos para reproducir