legend

fun legend(value: String): <ERROR CLASS>

Contains a legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. "legend": "Dangerous zones are red, safe zones are green"

Parameters

value

the legend to set