getLayerState method

Map<String, dynamic> getLayerState(
  1. String layerId
)

Check the loaded and visibility state of a specific layer.

Implementation

Map<String, dynamic> getLayerState(String layerId) {
  final state = _layerState[layerId] ?? {'visible': false, 'opacity': 1.0};
  return {
    'loaded': _ensured.contains(layerId),
    'visible': state['visible'],
    'opacity': state['opacity'],
  };
}