clearData method

Future<void> clearData()

Clears the data that the session's renderer holds, such as loaded tiles, and draws the map again.

See mln_render_session_clear_data in the C API reference.

Errors:

  • Status.targetLost when the session loses its target before the work runs.

Implementation

Future<void> clearData() => _run(
  (arena, completion) => raw.mln_render_session_clear_data(
    _handle.raw,
    completion,
    nativeDiagnostic,
  ),
);