rasterLayers property
Contains the description of the raster data layers and the bands contained within the tiles.
Implementation
Future<List<RasterDataLayer?>?> get rasterLayers async {
final localStyle = style;
if (localStyle == null) return null;
final raw = (await localStyle.getStyleSourceProperty(
id,
"rasterLayers",
)).value;
if (raw == null) return null;
return (raw as Map<Object?, Object?>).entries.map((entry) {
return RasterDataLayer(
entry.key as String,
(entry.value as List).cast<String>(),
);
}).toList();
}