setStyleSourceVolatile method
Sets whether a source is volatile.
The map doesn't store the tiles of a volatile source in the persistent cache.
See mln_map_set_style_source_volatile in the
C API reference.
Errors:
Status.notFoundwhen the style has no source namedsourceId.Status.invalidStatewhile the style isn't loaded, asMapHandle.setStyleUrl()describes.
Implementation
Future<CommandCompletion> setStyleSourceVolatile(
String sourceId,
bool isVolatile,
) => _command(
(arena, completion) => raw.mln_map_set_style_source_volatile(
_handle.raw,
nativeStringView(sourceId, arena).value,
isVolatile,
completion,
nativeDiagnostic,
),
);