addFillLayer method
Future<void>
addFillLayer(
- String sourceId,
- String layerId,
- FillLayerProperties properties, {
- String? belowLayerId,
- 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,
);
}