laptop and a wrench

Error

Adding and removing unique values on a layer's renderer does not change the displayed feature rendering.

Última publicación: June 13, 2019 ArcGIS API for JavaScript
Número de ID del error BUG-000122407
EnviadoMay 15, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontradaN/A
Sistema operativoN/A
EstadoKnown Limit

Información adicional

This is by design. In order to keep performance running smoothly, we cannot optimally watch every property of a renderer to make the appropriate redraw. The developer needs to clone the renderer and reset it themselves. It is one extra line of code, but it is worth the performance savings.

Solución alternativa

Clone and reassign the renderer.

 var rendererClone = layer.renderer.clone();

 layer.renderer = rendererClone;

Pasos para reproducir

ID del error: BUG-000122407

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga