setLight method

MapboxMap setLight(
  1. dynamic light,
  2. StyleSetterOptions options
)

Sets the any combination of light values.

@param light Light properties to set. Must conform to the Mapbox Style Specification. @param {Object} options @param {boolean} options.validate=true Whether to check if the filter conforms to the Mapbox GL Style Specification. Disabling validation is a performance optimization that should only be used if you have previously validated the values you will be passing to this function. @returns {MapboxMap} this

Implementation

MapboxMap setLight(dynamic light, StyleSetterOptions options) =>
    MapboxMap.fromJsObject(jsObject.setLight(light, options.jsObject));