setStyleURI

Load style from provided URI. This is an asynchronous call. To check the result of this operation, `MapLoaded` or `MapLoadingError` events should be observed. In case of successful style load, StyleLoaded event will be also emitted.

Parameters

uri

URI where the style should be loaded from.


Load style from provided URI. This is an asynchronous call. To check the result of this operation, `MapLoaded` or `MapLoadingError` events should be observed. In case of successful style load, StyleLoaded event will be also emitted. The optional runtime styling callbacks will be invoked during style loading when the corresponding part of the style document is loaded and can be modified.

Parameters

uri

URI where the style should be loaded from.

stylingOptions

Runtime styling callbacks