QField icon indicating copy to clipboard operation
QField copied to clipboard

SVG symbols are not recognizable in the layers panel and on placing a new feature on windows

Open Teodora18 opened this issue 2 years ago • 4 comments

When using SVG symbols for vector symbology (points, marked lines and filled polygons) in QField for Windows, the symbol is not recognizable. It is visualized as a question mark both on the map canvas and in the layers panel.

Reproduction Steps:

  1. Create a new project with a new vector layer (point layer, for example) in QGIS.
  2. Add a new feature in the layer and use any SVG symbol from the library for symbology.
  3. Import your project in QField for Windows.
  4. Open the layers panel and you will see a question mark instead of the SVG symbol.

Expected behavior:

Seeing the SVG symbol visualized correctly.

Observed behavior:

The SVG symbol is visualized as a question mark no matter what the real symbol is.

Screenshot

Screenshot from the layers panel and the map canvas Screenshot from the layers panel and the map canvas

Project and layer used

QField version: 2.0.8 - beta 8 on Windows 10

Additional information:

I suppose that once this bug is fixed, this one might happen.

  • Problem started happening recently, didn't happen in an older version of QField: [Not sure]
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
  • Problem happens with all files and projects, not only some files or projects: [Yes]

Teodora18 avatar Nov 07 '21 21:11 Teodora18

I had the same issue, but the solution is on our side ;-) Is the SVG symbol part of the project map? Otherwise copy it manually to that map on you're mobile. It works fine over here.

BoswachterMarc avatar Nov 09 '21 19:11 BoswachterMarc

I haven't tried it, but would Embed File be an option?

geomondego avatar Nov 13 '21 13:11 geomondego

Thank you both for your recommendations. With Embed File it works. I have just tried it and the SVG symbols are no longer unrecognizable.

Teodora18 avatar Nov 15 '21 23:11 Teodora18

@m-kuhn , I suspect the hard work you've been putting in updating builds might have had a positive impact here.

nirvn avatar Jul 31 '22 08:07 nirvn

@Teodora18 , this has been fixed in 2.4.X. Happy field mapping!

nirvn avatar Nov 03 '22 14:11 nirvn

Thank you!

Teodora18 avatar Nov 03 '22 19:11 Teodora18