addLineLayer method

  1. @override
Future<void> addLineLayer(
  1. String sourceId,
  2. String layerId,
  3. Map<String, dynamic> properties, {
  4. String? belowLayerId,
  5. String? sourceLayer,
})
override

Implementation

@override
Future<void> addLineLayer(
    String sourceId, String layerId, Map<String, dynamic> properties,
    {String? belowLayerId, String? sourceLayer}) async {
  await _channel.invokeMethod('lineLayer#add', <String, dynamic>{
    'sourceId': sourceId,
    'layerId': layerId,
    'belowLayerId': belowLayerId,
    'sourceLayer': sourceLayer,
    'properties': properties
        .map((key, value) => MapEntry<String, String>(key, jsonEncode(value)))
  });
}