getLoadedStyleJson method

Future<Object?> getLoadedStyleJson()

Reads the JSON of the style that the map loaded.

The JSON doesn't include the changes made to the style since it loaded.

See mln_map_get_loaded_style_json in the C API reference.

Implementation

Future<Object?> getLoadedStyleJson() => _query(
  _resultObjectOrNull,
  (arena, completion) => raw.mln_map_get_loaded_style_json(
    _handle.raw,
    completion,
    nativeDiagnostic,
  ),
);