setStyleJSON

Load the style from a provided JSON string.

Parameters

json

A JSON string containing a serialized style.


open fun setStyleJSON(@NonNull json: String, @NonNull stylingOptions: RuntimeStylingOptions)

Load the style from a provided JSON string. 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

json

A JSON string containing a serialized style.

stylingOptions

Runtime styling callbacks