| Bug ID Number |
BUG-000122407 |
| Submitted | May 15, 2019 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS API for JavaScript |
| Version found | N/A |
| Operating System | N/A |
| Status | Known Limit
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
|
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