setMapStyle

abstract fun setMapStyle(json: Int?)

Sets the style of the map based on a JSON resource. The JSON file should define the styles for the map elements.

Parameters

json

The resource id of the JSON file containing the map styles. If null, the map style will be reset to the default style.


abstract fun setMapStyle(jsonString: String?)

Sets the style of the map based on a provided string. The string should define the styles for the map elements.

Parameters

jsonString

The string defining the map styles. If null, the map style will be reset to the default style.