setMapLabelFont

fun setMapLabelFont(typeface: Typeface)

Changes the styling of labels on the map.

Parameters

typeface

The typeface used for the font


fun setMapLabelFont(typeface: Typeface?, color: String?, showHalo: Boolean)

Deprecated

Setting label color and halo globally has been deprecated, use [MPDisplayRule.setLabelStyleTextColor] and [MPDisplayRule.setLabelStyleHaloColor] to set it for individual rules instead

Replace with

setMapLabelFont(typeface)

Changes the styling of labels on the map.

Parameters

typeface

The typeface used for the font (Only works on Google Maps)

color

The color of the label text

showHalo

Whether the label should have a halo around the text