abstract fun setStyleJson(styleJson: String!): Unit
Sets the JSON content of the style used to display the map and reloads the style asynchronously. NOTE: This is an asynchronous operation. The user of this API needs to ensure that no methods of the StyleSettings interface are called before the style is reloaded. TomtomMapCallback.OnMapChangedListener.onDidFinishLoadingStyle is called when reloading the style is finished. An OnMapChangedListener can be registered using TomTomMap.addOnMapChangedListener.
styleJson
- String!: The JSON content of the style.
@Beta(2020, 12) abstract fun setStyleJson(styleJson: String!, layerSetConfiguration: LayerSetConfiguration!): Unit
Sets the JSON content of the style used to display the map and reloads the style asynchronously with the custom LayerSetConfiguration
. Custom LayerSetConfiguration
can only be used for Vector Tiles, Vector Traffic Flow, and Vector Traffic Incident Tiles. NOTE: This is an asynchronous operation. The user of this API needs to ensure that no methods of the StyleSettings interface are called before the style is reloaded. TomtomMapCallback.OnMapChangedListener.onDidFinishLoadingStyle is called when reloading the style is finished. An OnMapChangedListener can be registered using TomTomMap.addOnMapChangedListener.
styleJson
- String!: The JSON content of the style.
layerSetConfiguration
- LayerSetConfiguration!: custom layer set configuration.