setStyleLightJson method

Future<CommandCompletion> setStyleLightJson(
  1. Object? lightJson
)

Replaces the [light](https://maplibre.org/maplibre-style-spec/light/) of the map's style.

See mln_map_set_style_light_json in the C API reference.

Errors:

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

Implementation

Future<CommandCompletion> setStyleLightJson(Object? lightJson) => _command(
  (arena, completion) => raw.mln_map_set_style_light_json(
    _handle.raw,
    _nativeJsonView(lightJson, arena),
    completion,
    nativeDiagnostic,
  ),
);