On this page
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.
Was this helpful?
Sets the current style by reference style and optional variant. Changing the style resets sources and layers.
Reference style.
Optional style variant.