setStyle
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.
Sets the current style by reference style and optional variant. Changing the style resets sources and layers.
Reference style.
Optional style variant.