Open this page in the API Guide
MapPathStateStyle.legendText Property
Gets or sets the legend text for map elements that belong to this state. Legend text can contain keywords that will be mapped to string before displaying it.
Property Value
Type: String