setStyleURI

open override fun setStyleURI(uri: String)

Load style from provided URI.

This is an asynchronous call. In order to get result of this operation please use MapboxMap.addOnStyleLoadedListener, MapboxMap.addOnStyleDataLoadedListener or MapboxMap.addOnMapLoadErrorListener. In case of successful style load you should get notified by MapboxMap.addOnStyleLoadedListener.

And in case of error @see MapLoadError#StyleLoadError will be generated.

\attention This method should be called on the same thread where @see Map object is initialized.

Parameters

uri

URI where the style should be loaded from.