setStyle

fun setStyle(reference: MTMapReferenceStyle, variant: MTMapStyleVariant? = null)

Sets the current style by reference style and optional variant. Changing the style resets sources and layers.

Parameters

reference

Reference style.

variant

Optional style variant.