QGIS2WebMap by NIKA Powered by QGIS

Atlas cartographs

A QGIS atlas makes one page per feature of a coverage layer: a sheet per parcel, per site, per corridor segment. A cartograph keeps the atlas in one file. The reader opens it once and turns the pages in the browser, and the map, the scale bar and every page-dependent label update as they go.

Setting it up

On the cartograph’s Atlas tab, which reads Create a map series:

  1. Tick Create a map series.
  2. Under Make one page for each feature in, choose a layer. Each area or location in it becomes a page, and the tab says how many (“3 areas”, “12 locations”). Nothing is chosen for you.
  3. With one map on the layout, that is all: the tab says Updating map: Main map, and a map that did not follow the atlas before gets QGIS’s defaults (it fits each feature, with a 10% margin). With several maps, choose Map to update on each page; the other maps keep their current view.

The tab then shows 3 pages ready with Previous and Next. Moving through the pages changes the page beside the panel (the map, the labels that use the feature’s fields and the scale bar), so what you see is what is exported. Leaving the tab puts the layout back as you authored it, and moving between pages is not an edit: it adds nothing to Undo.

Export series… and Print series… come right after the preview, with a line such as Exports all 3 pages. Underneath, two closed sections hold the rest of QGIS’s atlas settings:

These are the layout’s own atlas settings - the same ones as the layout designer’s Atlas panel, which works just as well - so every change is on the layout’s undo stack. While the series is on, the tab reads Atlas (on).

The cartograph saves itself as usual. One file holds every page.

Why the map has to be interactive

An image frame is a picture, rendered once. It would show the same place on every page. The cartograph turns pages by moving an interactive map to each feature, and it finds the features in that map’s own data - so the coverage layer travels with that map, hidden when the map does not draw it. It only has to still be in the project.

When either is missing, nothing half-works: no atlas is written, and the Checks tab marks it Blocked with the fix - Set the atlas map to Interactive in Map frames, or Show the coverage layer … in a map that is Interactive.

Turning the pages

In the browser, a reader can:

The pager is for the screen only: it is never printed and never appears in an exported image.

On every page the map moves to that feature the way QGIS’s atlas moves it, the scale bar is worked out again, and labels using the feature’s fields, @atlas_featurenumber or @atlas_totalfeatures show that page’s values.

What changes from QGIS

In QGIS In the cartograph
Map scaling Margin around feature Kept
Map scaling Fixed scale Kept: every page at the map’s scale, centred on its feature
Map scaling Predefined scale Kept: each page at the scale QGIS picks for that feature
A point coverage layer Kept: QGIS centres each point at the map’s scale, in any scaling mode
Hide coverage layer Kept on interactive frames
Only show the current atlas feature Not kept - every feature of the layer is drawn. Marked Changed
Filter with Kept for any QGIS expression: QGIS itself works out which features get a page (so NULL is handled as QGIS handles it) and the cartograph pages exactly those. The filter in the file lists feature ids, not your expression; the expression itself is kept for “Import cartograph as QGIS layout”
Sort by Kept for any QGIS expression, with QGIS’s own order (empty values first when ascending, text order as QGIS sorts it). Each feature carries its place in that order
Output filename expression Kept when it can be translated; otherwise pages are named page-1, page-2, …
Page name Kept when it can be translated; otherwise the pager shows page numbers
A label expression that depends on the atlas feature in another way Reads the same on every page. Named on the Checks tab

The cartograph can have fewer pages than QGIS’s atlas. It skips features the map does not draw - a category switched off in the layer’s style, for example - so it never prints a sheet for a feature nobody can see.

Exporting and printing every page

Each output is checked on its own, so one that cannot be made never blocks another.

Export series… asks for a format:

Print series… opens the cartograph with every page rendered and laid out for one print job. While the pages are made the page shows Preparing page n of N with a Cancel button; if a page cannot be made, nothing is printed and the page says which one failed. Choose Save as PDF for one multi-page PDF; in a Chromium-based browser every page is at its true size. Each page is an image rendered at that same resolution, so text in that PDF is not selectable.

The ZIP, the web page and printing run through the cartograph, which turns pages with an Interactive map. When the map the series updates is an Image frame, the tab says so beside them (“Printing needs the map “Main map” to be Interactive.”) and Switch to Interactive changes it in one undoable step; that changes how the map behaves in the exported HTML. The PDF is not affected. Nothing ever changes a map’s type on its own.

A layout with several sheets (pages) per feature says so: 3 pages ready (2 sheets each) and Exports all 6 sheets.

Export PNG… in the Share menu works on the page the cartograph opens on, page 1. Save atlas as PDF… saves every feature in one PDF written by QGIS. For a single page, a cartograph opened with ?export=png&page=3 added to its address downloads page 3.

See also printing a cartograph.

Limits