addRasterLayer method
Future<void>
addRasterLayer(
- String sourceId,
- String layerId,
- RasterLayerProperties properties, {
- String? belowLayerId,
- String? sourceLayer,
Add a circle layer to the map with the given properties
The returned Future completes after the change has been made on the platform side.
Note: belowLayerId
is currently ignored on the web
Implementation
Future<void> addRasterLayer(
String sourceId, String layerId, RasterLayerProperties properties,
{String? belowLayerId, String? sourceLayer}) async {
await _mapboxGlPlatform.addRasterLayer(
sourceId,
layerId,
properties.toJson(),
belowLayerId: belowLayerId,
sourceLayer: sourceLayer,
);
}