setLight

fun setLight(lightOptionsJson: String)

Sets the global light options for the current style. Provide a JSON object string compatible with MapLibre GL Light specification. Example: { "anchor": "viewport", "intensity": 0.5 }

Parameters

lightOptionsJson

Raw JSON object string with light options.