I have a line type layer and I want to add an svg type marker, I managed to add a simple marker to the layer's symbology according to the image, with the attached code. Is it possible to change this simple marker with an svg icon?
layerName = 'rede_bombas'
vLayer = QgsProject.instance().mapLayersByName(layerName)[0]
ggsl = QgsGeometryGeneratorSymbolLayer.create({})
ggsl.setSymbolType(QgsSymbol.Marker)
ggsl.setGeometryExpression("centroid($geometry)")
ggsl.setColor(QColor('Blue'))
symbol = vLayer.renderer().symbols(QgsRenderContext())[0]
symbol.insertSymbolLayer(1, ggsl)
vLayer.triggerRepaint()