QGIS2WebMap by NIKA Powered by QGIS
The dialog on Cartograph (Beta) - the print layout drawn on the left, and on the right the Print layout list, the Layout, Atlas, Checks and Edit tabs, and the file name with its save status.

The Cartograph dialog, tab by tab

Choose Cartograph from the title menu at the top of the plugin’s dialog (Web map ▾) and the dialog becomes one screen: the print layout’s page on the left and a panel of settings on the right. The header holds colour vision, Save PDF… and Share, and there is no Export button. The web map’s tabs are described in the dialog, tab by tab. The Settings and Help icons at the right of the header are shared and work the same way.

Other ways in:

The document model, in one paragraph

A cartograph is a file that is always saved, not something an Export button produces. Selecting a layout saves it at once, and every change after that - in the panel, in the print layout itself, or to the style or data of a layer it draws - rewrites the file about 600 ms later, through a temporary file that is swapped in, so it is never half written. Preview and Share both work on that file. The dialog’s title names it. Closing the dialog leaves it where it is, and reopening the plugin on the same project picks it up again.

Settings are stored with the project, per layout: each layout remembers its own file, frames, page fields and print settings.


The page

The left side shows the selected layout, captioned Layout preview — QGIS · and its page size - Layout preview — QGIS · A4 landscape, for example. It is QGIS’s own drawing of the print layout, live: a change in the layout designer, a restyled layer or a new title shows at once.

It is not the HTML. The cartograph can differ in places - a north arrow the browser draws its own way, the page’s theme - and the Checks tab lists every difference. Beside the caption, a link such as 2 changes in the HTML opens Checks. To see the real cartograph, press Preview in browser. Open layout editor, beside the caption, opens the layout in QGIS’s own layout designer. The Page settings (title, attribution, theme) change the HTML, so they show in Preview in browser, not in this preview.

Under the page, the preview bar: Fit page, Add item, then −, the zoom level and +. 100% is the page at its real size on your screen. The mouse wheel zooms; drag from an empty part of the page or the workspace around it (not from an item), or hold Space and drag, or drag with the middle mouse button, to pan. There are no Select and Pan buttons: the page is always in selecting mode.

Add item offers Text, Legend, Scale bar, North arrow, Live count and Detail map. Choose one, then click the page to place it at its default size, or drag to draw its box. The new item is selected and the panel opens its Edit tab.

Click an item on the page to select it, drag it to move it, or drag one of its corner or edge handles to resize it, with the same snapping and Shift/Alt keys as the layout designer. A press that moves less than 3 px counts as a click, not a drag. Map frames move and resize like any other item, and a locked item stays where it is. Double-click an item to open its Edit tab. Every move or resize is one undo step on the layout, so Ctrl+Z and Ctrl+Shift+Z work on the page, the cartograph saves itself after each edit, and the page stops fitting to the window once you have clicked on it (Fit page fits it again). The layout is the same one the layout designer shows, so an edit in either appears in both.

With no print layout in the project, the page says so and offers New from template… and Import cartograph… instead.


The top of the panel. The list holds the project’s existing print layouts and follows the Layout Manager as you add, rename or remove them; it never holds an action. Beside it:

The panel's Print layout list, with the New from template... menu open on Import cartograph....

The layout shown is kept as it is; to change its text, move, resize or edit the items, use the layout preview and the Edit tab.

Below the list are four tabs - Layout, Atlas, Checks and Edit - and, at the foot of the panel, where the file saves.


Layout

Three sections that open and close. A closed section shows a few words about what is in it, such as Default theme or 1 interactive map, 1 image.

Browser appearance

These settings change the web page only - the layout preview beside the panel never shows them; use Preview in browser.

Map frames

One card per map item on the layout:

The Map frames section with two cards: Locator, EPSG:3857, Interactive, and Main map, EPSG:32648, Image at 200 dpi.

Go to location

Go to location… in a card’s ⋯ menu changes the area shown inside that map frame; the frame itself, its size and its rotation on the sheet stay as they are, and so do the QGIS canvas and your data. Nothing happens until you press Go, and Cancel or Esc leaves everything untouched. Go is one undo step on the layout’s own stack, keeps the map’s scale and rotation, and the Live counts, scale bars and saved cartograph follow it.

A map starts Interactive when the browser can draw it where QGIS does - in EPSG:3857 or EPSG:4326, or an unrotated projected map of vector layers and image tiles - and Image otherwise. (The Main map in the picture was switched to Image by hand.) A map the layout’s atlas turns also starts Interactive, whatever its CRS. Interactive or image frames is the whole story; the short version is that Interactive costs some styling and file size, and Image costs interactivity.

The cards follow the layout: add or delete a map in the layout designer and the list rebuilds.

Layers

The same list as the web map’s Layers tab (search box included), with the same Include, Popups and Labels columns and Set every field to. For a cartograph it sets how the layers in Interactive frames behave:

Image frames are pictures drawn by QGIS, so none of this changes them. Changing anything here saves the cartograph again.


Atlas

Create a map series: one page per feature of a layer, in one file. The tab edits the layout’s own atlas - the same settings as QGIS’s Atlas panel - so every change goes on the layout’s undo stack, and Undo in the layout designer takes it back. The tab reads Atlas (on) while the series is on. Atlas cartographs explains the rules.

The Atlas tab: Create a map series ticked, the layer that receives a page, the map being updated, the page preview with Previous and Next, and Export series and Print series.

Control What it is
Create a map series Turns the series on or off. While it is off only the explanation shows; settings are kept
Make one page for each feature in The layer whose areas or locations become pages. Nothing is chosen for you; the tab says how many (“3 areas”, “12 locations”)
Updating map: Main map / Map to update on each page With one map the tab names it. With several, choose which one; the others keep their current view. With none, Browse templates…
Previous / Next Step through the pages in the page beside the panel. Moving is not an edit, and leaving the tab puts the layout back as you authored it
3 pages ready The number of pages. A layout with several sheets per feature says so
Export series… Asks for PDF (QGIS’s own, always available), Images (ZIP) or Web page (HTML)
Print series… Asks how to print: Print with QGIS (every page, in order, through the system print dialog; no Interactive map needed; with no printer available the series is saved as a PDF to print from, and the status says nothing was printed) or Print from the web page (needs Interactive maps). Switch to Interactive sits beside that choice (and in Export series… for the ZIP and web page): one undoable step
Page framing Fit area with margin, Fixed scale or Predefined scales
Advanced settings Include pages (a filter), Page order, Page names, Export filenames. Opens by itself when a setting is wrong

Each output is checked on its own: the saved cartograph’s page count does not enable or disable anything.


Edit

The tab for the item selected on the page. Its heading says what is selected or, with nothing selected, how to select something. Double-click an item, or place one with Add item, and the panel switches here. Every edit is one undo step on the layout.


Checks

The cartograph’s report: every layout item that changed or was left out on the way to the HTML, with the verdicts Kept, Changed, Rasterised, Not exported and Blocked. The tab’s title carries the count - Checks (2) - and it refreshes after each save. Before the first save it reads Not checked yet, and Check now saves the cartograph to check it.

Each problem is one readable line; click it to read the whole sentence and, where the fix is in the dialog, a button that goes there - Show in Layers, for example. Filter and the search box work as on the web map’s Fidelity tab.

Layout items are listed under Whole map, and the layers the frames draw get their own groups - an image frame’s layers marked Rasterised, since they are part of its picture. The verdicts are explained in what a cartograph keeps.


Where it saves

The foot of the panel names the file: its name in bold, its folder under it, and two links - Change… to save it somewhere else, and Show in folder. Under them, the save status:

By default a cartograph saves in Documents/QGIS2WebMap/Cartographs, named after the project and the layout - parcels-Survey.html for the layout Survey in parcels.qgz. Anything other than letters, digits, dots and hyphens becomes a hyphen. A project that has never been saved has no name yet, so the layout’s name alone is used, and the cartograph still saves at once. If a file of that name is already there, the new one gets a number: parcels-Survey (2).html. To use another folder for every new map, see Settings → Saving in the dialog, tab by tab.

A cartograph only saves over a file that is its own earlier output, or one you picked in Change… and agreed to replace. If the project names any other file - a text file, somebody else’s page, a link, a folder, or a folder that does not exist - that file is left alone, the cartograph saves to a free name beside it (or in the default folder), and the message under the file name says where.

While the dialog is open, every layout that has a cartograph file keeps it up to date - the one on screen, one you switched away from, and one you are editing in the QGIS layout designer. Closing the dialog first finishes any save still waiting; if one fails, the dialog says so and offers Try again, Cancel closing or Close without saving. Edits made while the dialog is closed reach a layout’s file the next time you show that layout.

A cartograph is always one standalone HTML file. There is no Share ZIP or Folder type as there is for the web map: the page, the pictures of its Image frames and the data of its interactive maps are all inside it.


The header

At the top right, reachable whatever the panel shows:

Then the Settings and Help icons, as on the web map.

The header on Cartograph: the colour vision icon, Save PDF… and Share, then the Settings and Help icons.

The browser opens the file through a small server on your own machine (127.0.0.1) rather than as file://, because some browsers refuse to run a interactive map from a file path. Nothing leaves your computer.


The Share menu

The header’s Share button. An Export section, an HTML cartograph section, then the greyed NIKA rows.

Row What it does Available
Save atlas as PDF… One run of pages per atlas feature, in a single PDF, written by QGIS; never just the feature on screen Only when an atlas is set up
Export PNG… Opens the cartograph, which renders an image of the page at the saved resolution and downloads it - page 1 of an atlas; the Atlas tab exports every page Once the file exists
Export QGIS layout template (.qpt)… Saves the source layout as a .qpt template, to load into another project Once a layout is selected
PDF settings… Page size, resolution, bleed, crop marks, safe zone and colour profile for Save PDF… Once a layout is selected
Preview in browser (Ctrl+O) Opens the HTML cartograph, once the save holding your latest edits has landed, to check interactive maps and browser behaviour Once the file exists
Copy HTML file path Puts the cartograph’s path on the clipboard Once the file exists
Show HTML in folder Opens the folder the HTML cartograph is in Once the file exists

Ctrl+O (Preview in browser) and Ctrl+S (Save PDF…) work from anywhere in the dialog, without opening the menu.

Export PNG is derived from the cartograph rather than being the export: the browser makes it from the saved file. It waits until every raster in the page has drawn - a note at the foot of the page says so - and if one cannot draw, it stops with a message rather than save a page without it. Rasters draw with no internet connection. Save PDF… is different: QGIS writes it from the layout, not from the HTML. Both are covered in printing a cartograph.

There is deliberately no Share ZIP, no Folder, and no report row. A cartograph travels as its one file, and the Checks tab is always one click away.


Processing

For models and batch runs, the Processing Toolbox has QGIS2WebMap by NIKA → Cartograph → Export print layout to cartograph (Beta). It runs the same export as the dialog, once, with these parameters:

Parameter What it is
Print layout The layout to export
Frames Automatic (interactive where it matches QGIS, image otherwise - the dialog’s default), All interactive or All image
Image frame resolution (dpi) 72 to 600; 200 by default, as in the dialog
Title Replaces the page’s title; blank uses the layout’s title, then the project title
Export even if some items are blocked Off by default, so a Blocked item - an atlas on an image map, say - stops the run and names it. Pages after the first are Not exported, not Blocked: they are logged and page 1 is written
Cartograph Where to write the .html

The choices the dialog saved in the project for the layout are used too, so a run writes what the dialog would: each map’s choice in Map frames and its resolution, the Layers section’s popup and label choices, Print settings and the Browser appearance fields. Frames and Image frame resolution replace every map’s saved choice when they are passed; a script or qgis_process run that leaves one out keeps the saved choices, while the toolbox’s own window always sends both. A layout never set up in the dialog uses the defaults above. As in the dialog, an image frame is drawn at least at the resolution the page is saved at - the saved Print settings’, or 300 dpi without them - so Image frame resolution can only raise it.

Every check is written to the log.

On a computer that has never downloaded the OnlyMap runtime, the algorithm stops and says so - it cannot show the licence in a batch run. Save one cartograph or web map from the dialog first.


Next