setStyleLightJson method
- 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.invalidStatewhile the style isn't loaded, asMapHandle.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,
),
);