eyecatch

Add a North Arrow and Legend in Print Layout

Published: Last updated:
This article uses QGIS 3.34. The current LTR is 3.44.

What you'll learn


  • How to create a print layout in QGIS
  • How to use the Layout Manager
  • How to print a map and export it to PDF

Recommended for


  • Anyone who wants to export a map made in QGIS with a legend, scale, and other elements
  • Anyone who wants to print a map made in QGIS or export it to PDF

Introduction

A print layout is a QGIS feature for printing the map you created or exporting it to PDF, image files, and more. With it, you can arrange your QGIS map neatly and share it in a format suitable for reports and presentations. Note that a map without basic elements such as a north arrow and a scale is less reliable and conveys information less accurately.

This article explains, step by step, how to create a print layout in QGIS and export it to PDF.

Preparation: create a map

Before you create a print layout, add layers to QGIS and create a map.

In this article, the map uses the “Dam” data from National Land Numerical Information. It is colored with the Graduated renderer, based on the attribute for total storage capacity (W01_010).

The map created for this print layout walkthrough. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The map created for this print layout walkthrough. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Create a new print layout

Once the map is ready, create a print layout.

In the menu bar, choose Project → New Print Layout.

Click Project → New Print Layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Click Project → New Print Layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

A dialog asks for the print layout title. Enter a suitable name and click OK.

Enter a name for the print layout and click OK. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Enter a name for the print layout and click OK. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

The print layout window opens. A blank sheet of paper (the layout) appears in the center of the window.

Add various items to this layout to build the map for output.

The print layout window opens
The print layout window opens

Parts of the print layout window

The print layout window is organized as shown below.

Layout of the print layout window
Layout of the print layout window

The layout sits in the center of the window. Select the items you want to add (a map, a title, a legend, and so on) from the left side and place them on the layout.

The Items panel on the right lists the items you have placed.

Use the Layout and Item Properties panels to configure the layout and the items you add.

Initial print layout settings

Set the paper size

Before you start building the layout, set the paper size.

By default, a print layout is A4 landscape. To change it, right-click the layout and choose Page Properties.

Right-click the layout and click Page Properties
Right-click the layout and click Page Properties

The Item Properties panel at the bottom right switches to the page settings.

The Item Properties panel switches to the page settings
The Item Properties panel switches to the page settings

Here you can change the layout size, orientation, background color, and more, so adjust them for your purpose.

Turn on the grid and snapping to align items neatly

As you add items to the layout, showing the grid helps you place them neatly. This setting is optional, so set it as you prefer.

In the menu bar, choose View → Show Grid.

Click View → Show Grid
Click View → Show Grid

A grid of dots appears on the layout, although it is a little hard to see.

A dot grid appears on the layout
A dot grid appears on the layout

Next, set up snapping.

In the menu bar, choose View → Snap to Grid.

Click View → Snap to Grid
Click View → Snap to Grid

With this setting on, items snap to the grid when you place them, so you can arrange them in an orderly way.

When you move the mouse pointer near the grid while placing an item, a red “×” mark appears. If you drag and drop in this state, the item snaps to that position.

If you drag and drop while the “×” mark is shown, the item is placed with this position as its reference
If you drag and drop while the “×” mark is shown, the item is placed with this position as its reference

You can change the grid settings in the Layout panel at the bottom right. By default, the grid is shown at 10 mm intervals and the snap tolerance is 5 px.

To change the grid spacing, adjust the Grid spacing value. A larger Snap tolerance makes items snap to the grid more easily, so adjust it to suit your work.

You can change the grid settings in the Layout panel
You can change the grid settings in the Layout panel

Add and adjust a map item

Now add items to the print layout.

In a print layout, elements such as the map area, legend, and north arrow are called items.

Examples of items in a print layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Examples of items in a print layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Add a map item

When you add your first item to a print layout, it helps to add a map, which serves as the base for the layout.

Click the Add Map button on the left toolbar.

Click the Add Map button
Click the Add Map button

The mouse pointer changes to a “+”. Drag and drop on the layout to draw the map area.

The screen while drawing the map. Drag and drop to draw the map area
The screen while drawing the map. Drag and drop to draw the map area

When you drop, the map item appears on the layout. Depending on your data, drawing can take a while.

The map item is added to the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The map item is added to the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Adjust the map display area

The area shown in the map item is based on the area displayed in the map canvas. So the map item may show a different place from the one you want, and you may need to adjust the display area.

To change the display area, click the Move Item Content button on the toolbar.

Choose Move Item Content
Choose Move Item Content

On the layout, drag and drop to adjust the display area, and roll the mouse wheel to change the scale.

Here, the display is adjusted to center on the part of Hokkaido that has dam points.

The layout after adjusting the display area. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout after adjusting the display area. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Adjust the scale

You can adjust the scale with the mouse wheel in Move Item Content, but you can also enter a value directly for finer control.

First, make sure the Select/Move Item button on the toolbar is active (pressed). With it active, you can select items on the layout.

Choose Select/Move Item. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Choose Select/Move Item. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Click the map item on the layout to select it. A selected item has a blue outline.

Next, open the Item Properties panel.

After selecting the map item, choose Item Properties. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
After selecting the map item, choose Item Properties. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Main Properties has a Scale field. Edit the value there to adjust the scale of the layout.

Here, the scale is set to 3500000 to get a round number.

Enter a value directly in the Scale field to change the scale
Enter a value directly in the Scale field to change the scale

Add a frame

Finally, add a frame (border) to the map item.

With the map item selected, check Frame in Item Properties. Expand Frame with the ▼ to adjust the color, thickness, and more.

Check Frame
Check Frame

A frame makes the boundary of the item easier to see, so add one if you like.

The layout after adding the frame. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout after adding the frame. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Add a map title with a label

Now that the map item is added and adjusted, add a label to this layout. A label is an item for text such as a title.

Click the Add Label button on the toolbar.

Click Add Label. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Click Add Label. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Add the label by dragging and dropping, the same way you added the map item.

Here, the label is placed at the top left of the map item.

The label is placed at the top right of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The label is placed at the top right of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

You can change the label text, size, and more in Item Properties. To change the text, enter the title you want in the text box at the bottom of Main Properties. Here, the title is 北海道:ダム貯水量マップ (Hokkaido: Dam Water Storage Map).

To change how the label looks, use Appearance. You can change the font with the Font button just below Appearance. Here, the font size is set to 20, Horizontal alignment to Center, and Vertical alignment to Middle.

Add a frame in the same way as for the map item.

Check Frame
Check Frame

Resize an item

If you change the font size and the text no longer fits in the label item, as shown below, adjust the font size or the size of the label item as needed.

If the size looks wrong, adjust the font size or the size of the label item as needed. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
If the size looks wrong, adjust the font size or the size of the label item as needed. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

To resize an item, select it, move the cursor to a corner of the item, and drag and drop.

Selecting an item lets you resize it. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Selecting an item lets you resize it. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

The final adjustment looks like this.

The layout after adding the label. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout after adding the label. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Add a legend

A legend is a list that explains the meaning of the colors and symbols used for the features on a map. It tells readers what the elements shown on the map represent.

To add a legend, click the Add Legend button on the toolbar.

Click Add Legend
Click Add Legend

As before, place the legend wherever you like. Add a frame to the legend too.

The legend is placed at the bottom right of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The legend is placed at the bottom right of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Remove items from the legend

By default, a legend includes all the layers added to the map canvas. Here, the legend should show which value range each color of the dam layer represents, so adjust the items to display.

With the legend selected, clear Auto update under Legend Items in Item Properties. Next, select the layer you do not want in the legend from the list. Finally, click the - button to remove the selected layer from the legend.

Clear Auto update to adjust what the legend shows
Clear Auto update to adjust what the legend shows

Change the names shown in the legend

To change a name shown in the legend, select the layer you want to change and click the Edit selected item properties button.

Change the text in the Label field to change the name shown in the legend.

Edit selected item properties lets you change the displayed name
Edit selected item properties lets you change the displayed name

After you apply these changes, adjust the size and position.

The layout after adding the label. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout after adding the label. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Add a scale bar

A scale bar is a bar with graduations that shows the relationship between distances on the map and real distances. Adding a scale bar lets you see visually how far the distances shown on the map are in the real world.

To add a scale bar, click the Add Scale Bar button on the toolbar.

Click Add Scale Bar
Click Add Scale Bar

Place the scale bar wherever you like.

The scale bar is placed at the top right of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The scale bar is placed at the top right of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Change the scale bar style

You can also change the display settings of the scale bar in Item Properties.

Use Style under Main Properties to change the scale bar style.

Use Style to change the scale bar style
Use Style to change the scale bar style

The default is Single Box, but many other styles are available, including Line Ticks Up, Line Ticks Middle, and Numeric.

Examples of scale bar styles
Examples of scale bar styles

Change the scale bar divisions

You can also change the scale bar's Units and its number of divisions (Segments).

You can change the scale bar’s Units and Segments
You can change the scale bar’s Units and Segments

Here, Fixed width is changed to 100 km.

The layout after adding the scale bar. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout after adding the scale bar. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Add a north arrow

Next, add a north arrow.

To add a north arrow, click the Add North Arrow button on the toolbar.

Click Add North Arrow
Click Add North Arrow

Place the north arrow wherever you like.

The north arrow is placed at the top left of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The north arrow is placed at the top left of the layout. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Change the north arrow style

As with the other items, you can change the style of the north arrow in Item Properties.

Use the SVG browser to change the north arrow symbol. Select the arrows folder under SVG Groups, then choose the north arrow you like from the SVG images on the right.

The SVG browser lets you change the north arrow symbol
The SVG browser lets you change the north arrow symbol

Scroll further down to find SVG Parameters. Change the colors there to change the color of the north arrow.

SVG Parameters lets you change the color of the north arrow
SVG Parameters lets you change the color of the north arrow

With these settings applied, the layout looks like this.

The layout after adding the north arrow. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout after adding the north arrow. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Export the print layout to PDF

You have now built the layout shown below by adding various items.

The layout with all items added. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout with all items added. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

As the last step, export the layout to PDF.

In the menu bar, choose Layout → Export as PDF.

Choose Layout → Export as PDF. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Choose Layout → Export as PDF. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

The Export to PDF dialog opens. Edit the file name as needed and click Save.

Enter a file name and click Save
Enter a file name and click Save

The PDF Export Options dialog opens. Leave the options as they are and click Save.

Click Save
Click Save

The exported PDF contains the layout you created.

The print layout exported as a PDF. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The print layout exported as a PDF. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Besides PDF, you can also export the layout as an image or print it directly on a printer.

You can also export as an image or SVG, or print with a printer
You can also export as an image or SVG, or print with a printer

Save the print layout

When you finish the print layout, save it.

A print layout is stored in the project file, so saving the project saves the print layout too.

Click the Save Project button on the toolbar to save the project.

Click Save Project to save the project
Click Save Project to save the project

Open a layout from the Layout Manager

To reopen a layout saved in the project, use the Layout Manager. In the menu bar of the QGIS main window, choose Project → Layout Manager.

Click Project → Layout Manager. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
Click Project → Layout Manager. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

The Layout Manager lists the titles you gave your layouts when you created them. Double-click the layout you want.

Double-click the layout you want
Double-click the layout you want

The layout appears in the state you saved.

The layout is displayed again. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)
The layout is displayed again. Adapted from “National Land Numerical Information (Dam Data)” (Ministry of Land, Infrastructure, Transport and Tourism)

Conclusion

The QGIS print layout feature lets you arrange a map neatly, print it, or export it as a PDF. This article does not cover every item, but you can add many others, such as attribute tables and images. With print layouts, you can efficiently create maps for reports and field surveys.

Print layouts also include an atlas feature, which outputs a map for each feature of a specified layer in bulk, using the same layout. The following article describes this feature in detail.

About the author
QGIS LAB Editorial Team
QGIS LAB Editorial Team

QGIS LAB is a comprehensive information hub for QGIS, the open-source GIS software. Under the concept of “Geospatial for Greater Good,” we share the knowledge and skills to open up the world through location data.