44

In QGIS 2.8 Composer, there's a Wrap text on option in the Item properties tab when you add a legend which lets you enter a character where you want the new line to start. What I normally do is use the * character in the layer's name for where I want the new line. Then input the * into the Wrap text option. (I'm using QGIS 2.8.2-Wien):


43

Another option is to add a rectangle shape to the composition, then style the rectangle using a gradient fill with the same color ramp as your raster. This can be done directly in QGIS, no image editing or html required.


32

For posterity (since I think I have discovered the issue here, or at least had a different one myself): there is a "Page Size" setting in the Layout>Page Setup dialog that does not modify the layout of the composition manager. I suspect that this is what you were talking about cndnflyr, since your description matches what I was doing (ineffectually) to a "T"...


27

I think there's a few steps involved and you may need three scalebars (instead of the two in my previous comment). Create your first scalebar showing kilometers: Create your second scalebar showing nautical miles: Select the nautical mile scalebar and copy/paste it below (Ctrl+C, Ctrl+V will do, thanks to @Oto Kaláb for this very useful tip!): Modify the ...


22

Add a new label in QGIS 2.0.1 Composer. In the item properties if you put the following code <span style="color:blue;text-shadow: 0px 0px 2px #4d2d4d, 0px 5px 10px #aefe00;">Test</span> you'll obtain the desired effect: (Don't forget to disable the item background if you are looking for a transparent label!) EDIT Some text-shadow ...


22

QGIS 2.x There is an Orientation option in the Composition menu which allows you to switch between Portrait and Landscape: Can't confirm this but I would guess that the Page Setup... are options for printing and not for visualising onscreen. QGIS 3.x To change the layout orientation, right-click on the layout and select Page Properties. You can also ...


20

Another, easy way to achieve the same as the buffer function in QGIS.DESKTOP is the following: <p style="-webkit-text-stroke: 3px white">Test</p>


19

Steps for QGIS 3.6 A few things have been moved and renamed from QGIS 2.x (see below), this is how it works in 3.x: Open a new Print Layout (formerly "Composer"): Menu Project - New Print Layout Right click somewhere on the white empty page, click "Page Properties". In the right sidebar the "Item Properties" tab will be activated, modify the background ...


18

If anyone is interested here is the code I ended up with. This will turn on/off specific layers in the table of contents (from a list of layers), load a selected composer template from file, generate an atlas and export the map. Finally, returning the table of contents to its original state. def sort_toc(self): # Turn on/off layers as required by ...


17

If anyone is having this issue in QGIS 3, the settings are hidden (for now?)... Right-click the page Choose 'Page Size' The 'Item Properties' panel now contains your page size settings (it doesn't normally show them) This is a strange method to get to the page size, as I'm seeing issues even using the menu Layout > Page size on various operating systems to ...


15

Update 27/07/2018: As of QGIS 3.2.1, my workaround below no longer works! If I find an alternative solution I will post here again. This is very, very annoying... There is a way to do this. In the Item properties tab for your map item, click on the black-and-yellow "data defined override" icon to the right of the "scale" box. Click on "Edit". In the "...


15

I don't think there's an option yet which allows you to put the units below the scalebar. An alternative could be to: Modify your current scalebar and set its Font colour to match the background colour: Item Properties > Fonts and colours > Font colour Copy your scalebar and paste it directly below your original scalebar. Then set its Font colour to ...


14

A bit of a hack round to get composer to do this in QGIS 3 Add your legend, then adjust the symbol size in your legend to something small (example is 1.5mm). You'll still see white lines dividing the colour bands, these seem to relate to the font size for the legend text so set this to zero. You can then add manual labels along the gradient and a ...


13

Well, With Qgis 2.0, you can click the "Layout" menu, then "Move Content", and adjust the layers to your liking


13

There is possibility to do it in Print Composer now. Also it is possible to simply manually create vector layer with grid in QGIS (Vector->Research Tools->Vector Grid) - the only way if more grids are needed in one frame (update: from QGIS 2.6 it is possible to do more grids for frames). In Composer Manager select map frame and go to Item Properties / Grid


13

Yes. You can add in a second map to use as an overview map. You need to lock the features on your your original map first using the Item properties tab. There is a tick box for this in the Main Properties section. You then get QGIS looking how you want the overview map to look and then add it in using the print composer in the same way you added the first ...


13

The north arrow is added as an image. The behaviour of the scale depends on the CRS of your data/map. Once you start inserting an image in the composer, you should get the option to select from a library of icons, and a subfolder is arrows, of which there are are many types. Once the image is installed, there is an option to keep the rotation of the arrow ...


13

Uncheck the "auto update" box. This makes it possible to remove fields from the Print Composer without removing them from the project. You can't remove a parent without removing the children. However, you can click the Edit Text (pencil) icon, erase all the text, and the legend will eliminate the whitespace.


12

If I interpret your issue correctly, you are looking for the move item content tool which is the rightmost tool button you can see in the toolbar @Joseph posted. Location of the move item content tool in QGIS 3:


12

There's an option under Item Properties to do this, but it's only available for an Image item, not an Arrow, which may be why you're not seeing it. You need to add your north arrow from an image (Layout -> Add Image). Once you do, there's a checkbox under Image rotation to sync the rotation with your map:


12

On the map item go to 'Item Properties > Layers'. There are two check boxes: "Lock Layers" = prevent any layers being added or removed from the map window "Lock styles for layers" = prevents styles changing on layers visible in the map window. Checking both of these for a particular map item stop any changes happening to that map so you freely make ...


12

Your question is very vague, so (at least at this moment) I can only post a very general answer. Solution for QGIS 2.x Supposing you want to create a new composition in which there is one map containing all the layers enabled in the Layers Panel, you may run the following code from the Python Console: from PyQt4.QtCore import * from PyQt4.QtGui import * # ...


12

I suggest to use a virtual layer. If the SQL in virtual layers would give the same result than SQL that is fired directly against databases then the following should work select a.field_1,a.field_2,a.field_3 from (select field_1,field_2,field_3,"ORDER" ORDER BY "ORDER") as a; The result seems to work correctly in the print composer with QGIS 3.8.3. I ...


11

I think what you are looking for is called the "Overview Map". The YouTube video called "Tutorial 21 - Adding a Locus/Overview Map to a QGIS Print Composer" shows how to add an overview map using what appears to be pre-2.0 tools. There is also a new capability in the recent QGIS 2.0 release that is a more automated method of setting up an Overview map. ...


11

A workaround without pictures is to add the gradient using a HTML frame and some CSS magic: <html> <head> <style type="text/css"> body { background: -webkit-linear-gradient(left,red,orange,yellow,green); } * { color: white; font-family: "Source Sans Pro", Arial, sans; font-size: 24px; } </style></head> <body> <div ...


11

Save your excel file as CSV file go to Add Vector Layer in QGIS and navigate to your CSV file and load it In the print composer, go to Add attribute table, as you can see below: Select the Source from Layer Feature from the window in the right,as shown below: You can change the font and formats based on your needs, and here is final output: UPDATE In ...


11

You can use the Sinica WMTS service, it has the Bing Aerial layer. It's url is: http://gis.sinica.edu.tw/worldmap/wmts. Just use it as any other WMS or WMTS layer and it works just fine with rotated maps in Composer.


11

If you want to add a numeric scale like 1:10000 you can add a normal scalebar first and then change the style to 'Numeric' under Item Properties > Main Properties of the scalebar element.


11

You can use the "Filter legend by map content" button in the print composer item properties for your legend item. The print composer legend will then only show the layers which are within your composer map view.


10

you could unmark the layer (which you dont want to be drawn in one composer) in the layers panel, then do your settings in the print composer and then mark "lock layers for map item" in the Item Properties tab of the print composer. Now you have one print composer without that layer. Now reselect = checkmark this layer again in the layers-panel and create ...


Only top voted, non community-wiki answers of a minimum length are eligible