setStyleLightProperty method

Future<CommandCompletion> setStyleLightProperty(
  1. String propertyName,
  2. Object? value
)

Sets a property of the light of the map's style.

See mln_map_set_style_light_property in the C API reference.

Errors:

  • Status.invalidState while the style isn't loaded, as MapHandle.setStyleUrl() describes.

Implementation

Future<CommandCompletion> setStyleLightProperty(
  String propertyName,
  Object? value,
) => _command(
  (arena, completion) => raw.mln_map_set_style_light_property(
    _handle.raw,
    nativeStringView(propertyName, arena).value,
    _nativeJsonView(value, arena),
    completion,
    nativeDiagnostic,
  ),
);