addRasterLayer method

Future<void> addRasterLayer(
  1. String sourceId,
  2. String layerId,
  3. RasterLayerProperties properties, {
  4. String? belowLayerId,
  5. 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,
  );
}