getStyleLayerJson method
- String layerId
Reads a layer of the map's style as a [layer](https://maplibre.org/maplibre-style-spec/layers/) object.
Completes with no value when the style has no layer named layerId.
See mln_map_get_style_layer_json in the
C API reference.
Implementation
Future<Object?> getStyleLayerJson(String layerId) => _queryOptional(
_resultObjectOrNull,
(arena, completion) => raw.mln_map_get_style_layer_json(
_handle.raw,
nativeStringView(layerId, arena).value,
completion,
nativeDiagnostic,
),
);