getLayerViewState method

LayerViewState? getLayerViewState(
  1. {required Layer layer}
)

Retrieves the layer's state in the GeoViewController.

Parameters:

  • layer — A layer object to get the view state for.

Return Value: A LayerViewState.

Implementation

LayerViewState? getLayerViewState({required Layer layer}) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeoView_getLayerViewState(
        _handle, layer._handle, errorHandler);
  });
  return LayerViewState._fromHandle(objectHandle);
}