setLabel

@NonNull
fun setLabel(@Nullable label: String): LocationDisplayRule.Builder

Sets a label to be rendered along with a location's icon (or alone if an icon hasn't been set)

The label can be:

  • null to not show a label
  • A literal string
  • A template to render the location's name ("{{name}}"), the externalId ("{{externalId}}") or both ("{{externalId}} {{name}}")

Note that the default is to show the Location's name ("{{name}}") as its label

Return

Builder

Parameters

label

A template string, a plain string to be shown as the label or null