replaceLegend

fun replaceLegend(id: String, legend: Legend)

Replaces a registered legend in the cache and refreshes its view. Use when applying host-side presentation overrides that must survive toggleUnits.