Legend.getItemById Method

Get a legend item with a specific ID from the legend.
 

Parameters

id

Type: Object
The ID of the legend item.

Return Value


Type: LegendItem
The legend item with the requested ID, or null.