getLayerState method
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'],
};
}