addSymbolLayer method

  1. @override
dynamic addSymbolLayer(
  1. String sourceID,
  2. String layerID,
  3. String? sourceLayerID,
  4. String? belowLayerID,
  5. StylePropertyInternal styleProperty,
)
override

add symbol layer to style

Implementation

@override
addSymbolLayer(String sourceID, String layerID, String? sourceLayerID,
    String? belowLayerID, StylePropertyInternal styleProperty) async {
  PMLogger.printProduction(
      "$_tag add symbol layer: sourceID:$sourceID layerID:$layerID "
      "sourceLayerID:$sourceLayerID belowLayerID:$belowLayerID in style:$style",
      debugPrintable);

  final layer = mbx.SymbolLayer(id: layerID, sourceId: sourceID);
  if (sourceLayerID != null) layer.sourceLayer = sourceLayerID;
  await addLayer(layer, belowLayerID);
  await applyPromotedPinStyle(layerID, layer, styleProperty);
}