getStyleSource method
- String sourceId
Reads a source of the map's style.
A tile source with a url has an empty attribution until its TileJSON
loads, which raises RuntimeEventType.mapSourceChanged.
Completes with no value when the style has no source named sourceId.
See mln_map_get_style_source in the
C API reference.
Implementation
Future<StyleSourceInfo?> getStyleSource(String sourceId) => _queryOptional(
_resultStyleSourceInfo,
(arena, completion) => raw.mln_map_get_style_source(
_handle.raw,
nativeStringView(sourceId, arena).value,
completion,
nativeDiagnostic,
),
);