getStyleLayer method

Future<StyleLayerInfo?> getStyleLayer(
  1. String layerId
)

Reads a layer of the map's style.

Completes with no value when the style has no layer named layerId.

See mln_map_get_style_layer in the C API reference.

Implementation

Future<StyleLayerInfo?> getStyleLayer(String layerId) => _queryOptional(
  _resultStyleLayerInfo,
  (arena, completion) => raw.mln_map_get_style_layer(
    _handle.raw,
    nativeStringView(layerId, arena).value,
    completion,
    nativeDiagnostic,
  ),
);