> For the complete documentation index, see [llms.txt](https://uttws.gitbook.io/gis-workshop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://uttws.gitbook.io/gis-workshop/exercise/export-map.md).

# Export Map

**Overview**

For our final topic in this exercise, we will export the map to a pdf file.&#x20;

What's the difference between creating a static map versus a web map?

|                    | Static Maps                                                                              | Web Maps                                                                                                         |
| ------------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Layers             | Realistically only a few can be included on a single map without becoming overly complex | Additional layers can be included and toggled on/off                                                             |
| Data visualization | Predetermined way of visualizing data based on the map maker’s preferences               | Can allow for interactivity in how data is display using filters, on/off toggles, or ability to change symbology |
| Interactivity      | Paper can feel nice?                                                                     | Users can zoom, pan, click, toggle on/off, and search                                                            |
| Map composition    | Easy to add text, map elements, credits, etc. in layout manager                          | Requires configuring the map session preferences or editing the HTML file after production                       |
| Sharing            | Image can be exported and shared as a standalone file                                    | URL can be shared as a link and viewed on tablets, phones, or computers                                          |

Before we create a new map let's change a few things in the map:

* &#x20;change path symbology to grey for all lines
* Toggle on heatmap and move it to the top of your layer list

Now let's create a map to export out as a pdf

1. Navigate to `Project` > `New Print Layout`&#x20;
2. Type a name for map > `OK`
3. A new window will open with a blank canvas. To the left is your composer tools (scale bar, legend, north arrow, add picture, add attribute table, etc.) at the top is your main menu and tool bars.
4. From the left hand side tool bar select `Add Map`
5. Next, let's add a scale bar. Select `scale bar` and position and customize the appearance in the scale bar.&#x20;
6. On the right hand side of our screen we see two new items in our items panel, the map and the scale bar. Right click scale bar from the items list and select item properties. You now have the option to customize it by change the scale units, label, color, etc.&#x20;
7. Add a legend from the tool bar. You'll see we have a bunch of other layers showing up, even though they aren't displayed in the map. We can change that by right clicking Legend > Item Properties. Turn OFF Auto Update under Legend Items and toggle on "Only show items inside linked map".

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2Fl6yPm0tC4Iq9OekkdFyi%2Flegend.JPG?alt=media&amp;token=bb1f0e78-f5a0-401f-b509-9984d1892316" alt=""><figcaption></figcaption></figure>

8. That cleared all of the layers not visible in our map extent. However, we probably don't need state boundaries or the shaded relief in our legend. Remove this by highlighting the layer under the item properties legend and select the minus button.

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2FjMBfGxtMhgu99AzVG1vq%2Flegend_delete.JPG?alt=media&amp;token=9e0cf7e0-6810-46c8-896c-ad5a179fbff8" alt=""><figcaption></figcaption></figure>

9. Your map canvas should look something like this now.&#x20;

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2Faok4QmWQta5oMSrL68iH%2Fmapcanvas.JPG?alt=media&amp;token=d6ba7278-d113-48f4-801c-59555fe8ff17" alt=""><figcaption></figcaption></figure>

9. Next let's create an inset map. First, lock the map and layers in your Map 1. When this option is enabled, any changes on the layers’ visibility in QGIS’ main window will not affect the layout’s map item.

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2FTpOHTEwqQwKy2L1XcHuj%2Flocklayers.JPG?alt=media&amp;token=6864afd4-e720-4686-82dc-ced8a7886114" alt=""><figcaption></figcaption></figure>

10. From the left hand side tool bar add another map to your canavs. In the item properties of Map 2 adjust the scale so it's zoomed out.&#x20;
11. Scroll down to the overview option and an overview and select Map1 frame.

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2F5mQdnuFK70bJpQmDIQor%2Foverview.JPG?alt=media&amp;token=1648f84d-b608-4774-95fe-4eb9e65ef3fc" alt=""><figcaption></figcaption></figure>

10. If you don't like the basemap option or having the KDE displayed in your overview, save your layout and close out to your main QGIS window. Toggle on the layers you want to appear in your overivew map.&#x20;
11. Return to your layout by going to `Project` > `Layout`&#x20;

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2FHDUvA8z8lICkkOtqHfP9%2Flayout.JPG?alt=media&amp;token=c22c7d08-5fbc-4bf4-b88f-f9288d08465a" alt=""><figcaption></figcaption></figure>

Your map should look something like this:

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2F8T7GCftSQv16oAdTVweD%2Foverviewmap.JPG?alt=media&amp;token=4fab29b5-8f43-4fcb-a0fa-27d957d331ef" alt=""><figcaption></figcaption></figure>

10. Take the next 5 minutes and play around with your map. Add some text, a photo of a pronghorn, and north arrow!
11. When you're ready export the map as a pdf from the top tool bar:

<figure><img src="https://2205741137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cMAMCb5DcFjpDJPHG1T%2Fuploads%2FVzd6G0BdSUZ9Hwlifk7K%2Ftoolbar.JPG?alt=media&amp;token=212aa0e2-925e-4829-9acb-312df1efcd0a" alt=""><figcaption></figcaption></figure>
