addFillLayer method

Future<void> addFillLayer(
  1. String sourceId,
  2. String layerId,
  3. FillLayerProperties properties, {
  4. String? belowLayerId,
  5. String? sourceLayer,
})

Add a fill 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> addFillLayer(
    String sourceId, String layerId, FillLayerProperties properties,
    {String? belowLayerId, String? sourceLayer}) async {
  await _mapboxGlPlatform.addFillLayer(
    sourceId,
    layerId,
    properties.toJson(),
    belowLayerId: belowLayerId,
    sourceLayer: sourceLayer,
  );
}