New answers tagged

5

I see the same issue. Took a look at this file in InkScape, and used Shift-Ctrl-F to bring up the Fill and Stroke properties. I noticed that the fill on your green and blue areas were set to 'pattern fill', stripes 1:1. Make a note of your blue and green colours first. Next, change to use 'Flat Color' on both the coloured areas, then reselect your colours ...


1

It works if you just put in the svg in the src element ol.style.Icon, but if you scale it, the svg will become unsharp. In my case I use the same svg for multiple Zoom Levels and wanted a different size each zoom Level. The way i got the scaling problem work is: function getVectorImage(src, size) { var canvas = document.createElement('canvas'); ...


2

You need to modify the content of the SVG file and an answer was given in GIS SE (How to create svg symbols that have modifiable fill color, stroke color and stroke width?) and in Add and personalise SVG symbols in QGIS (in French, Portail SIG) Compare the "transport_bus_stop.svg" file where you can change the colors In the file, the <path contains ...


1

In the print composer, enable atlas and use point layer as atlas coverage layer. Set the map item to be controlled by atlas, and choose the fixed scale Back in the QGIS's main window, for each layer that you want to filter according to a certain distance to the point use the rule based symbology and use the following rule within($geometry, buffer(@...


0

It turns out that SVGs in IE11 need the value imgSize setting to the SVG's native dimensions. That seems to have been the problem. However, it seems not to work with size, so I now need to find out how I can resize them client-side.


0

One thing that was missing for me was the width="Xpx" height="Ypx" attributes in the svg.


0

There is no good solution for sharing symbols with SVGs yet. Here's a recent discussion on the mailing list and the resulting feature request. For now, you have to manually make sure to copy the SVG and configure QGIS to find it on the other PC.



Top 50 recent answers are included