4

When using svg marker symbols and set the path to svg file via Data defined override the svgs display well in the map canvas, but not in the layers panel (applies for QGIS 2.x and 3.x).

svg marker symbol setup:

enter image description here

Expression for Data defined override (Note the output preview):

@svg_path || '\\baustelle_laufend.svg'

(This is build from a variable holding different paths to svg symbols in various environments and the svg file name itself)

enter image description here

The correct display in the Symbol Selector and in the map canvas as well proves that this approach works fine, but in the layers panel the svg symbols are replaced by some ugly question marks:

enter image description here

Why is that so? Is this a bug?

  • The path is using slashes while the filename is added using a backslash. Would it work if you set the filename with a slash? – JGH Oct 24 '18 at 11:26
  • @JGH just tried replacing '\\' by '/', but unfortunately no effect... – Jochen Schwarze Oct 25 '18 at 7:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.