laptop and a wrench

Bug

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

Last Published: June 13, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000122407
SubmittedMay 15, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version foundN/A
Operating SystemN/A
StatusKnown Limit

Additional Information

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.

Workaround

Clone and reassign the renderer.

 var rendererClone = layer.renderer.clone();

 layer.renderer = rendererClone;

Steps to Reproduce

Bug ID: BUG-000122407

Software:

  • ArcGIS API 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