addLineLayer method
Future<void>
addLineLayer(
- String sourceId,
- String layerId,
- LineLayerProperties properties, {
- String? belowLayerId,
- String? sourceLayer,
Add a line 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> addLineLayer(
String sourceId, String layerId, LineLayerProperties properties,
{String? belowLayerId, String? sourceLayer}) async {
await _mapboxGlPlatform.addLineLayer(
sourceId,
layerId,
properties.toJson(),
belowLayerId: belowLayerId,
sourceLayer: sourceLayer,
);
}