I've downloaded an SVG image of a looped arrow from a website. It looks like this:
I'd like to adjust the code of this SVG so as to make the fill color, stroke color, and stroke width modifiable in QGIS. (QGIS is an open-source geographic information software system.) It is explained how this can be done in this GIS SE question.
Unfortunately, I am having trouble applying the methods in jgrocha's answer. He states one ought to replace the style attribute of the path element with the following code:
fill="param(fill) #FFF" stroke="param(outline) #000" stroke-width="param(outline-width) 1"
However, upon opening the SVG file in Inkscape, I cannot find the style attribute. Here's what the code looks like in the XML editor:
Although the path element is there, I don't see the the style attribute anywhere. I've also tried viewing the SVG code in a regular text editor. When I open it up, I obtain the following code:
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 48 48" id="Layer_1" version="1.1" viewBox="0 0 48 48" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><polygon points="43.1,13.3 31.3,12.4 31.6,8.5 39.6,9.2 40.2,1.2 44,1.5 "/>
Over here, I cannot even discern the path id anymore.
- How -- if at all -- can I change the code of the SVG file of the looped arrow in such a way that the stroke/fill color and stroke width is modifiable in QGIS?
- Should this be done in the XML editor of Inkscape, or can it also be done in a “regular” text editor?
- Why can I not see the path id of this SVG file in the regular text editor?