Skip to main content
1 of 11
Taras
  • 34k
  • 4
  • 73
  • 148

Let's assume there is a point layer with three point features in it, see image below

input

Proceed with: RMC > Properties > Symbology > Symbol layer type: SVG Marker.

Then go to the Dynamic SVG parameters > Edit... , where paste the following expression:

CASE
    WHEN "id" = 1 THEN 'C://TempDaten//socicon_amazon.svg'
    WHEN "id" = 2 THEN 'C://TempDaten//socicon_google+.svg'
    ELSE 'C://TempDaten//socicon_apple.svg'
END

window

and get the following result:

result

Above I am working with a folder C://TempDaten where sll my SVG markers are stored.

I am on Windows 10 with QGIS 3.18.1-Zürich.

Taras
  • 34k
  • 4
  • 73
  • 148