setMapLabelFont

open fun setMapLabelFont(@NonNull typeface: Typeface)

Changes the styling of labels on the map.

Parameters

typeface

The typeface used for the font


open fun setMapLabelFont(@Nullable typeface: Typeface, @Nullable color: String, showHalo: Boolean)

Deprecated

Since version 4.3.0

Changes the styling of labels on the map.

Deprecated

Use setLabelStyleHaloColor and setLabelStyleTextColor instead. Using DisplayRules gives better control over what labels are affected, and allows for multiple styles across the map. Use setMapLabelFont to change the typeface.

Parameters

typeface

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

color

The color of the label text

showHalo

Whether a the label should have a halo around the text