Printing maps

Any map you can open in the viewer can be printed. The print composer puts the map on a sheet of paper with a title, legend, scale bar and north arrow, then saves it as a PDF you can send to a printer or hand to someone in the field.

The PDF is made in your browser, on your own computer. Sarkoa does not render it on a server, so the file you download matches the composer's preview exactly.

Opening the composer

Open the map in the viewer and click the printer button in the map controls. Its tooltip reads Print or export as PDF. The composer opens on the view you were looking at. On a map with a time slider it keeps the date you had selected, and that date is the one that prints.

The composer lives at the viewer's address with /map/view/ changed to /map/print/, so you can also bookmark it or send the link to a colleague.

From preview to PDF

  1. Under Paper, pick a size (A4 to A0, Letter, Legal, Tabloid, or a custom size in millimetres) and an orientation. The layout template and the resolution are set here too, and both are explained below.
  2. Under Map frame, pan and zoom the preview until it shows the area you want. To print at a fixed scale, type it, for example 1:25,000. Fit all layers frames everything that is visible, and Point north up undoes any rotation.
  3. Under Text, write the title, subtitle, notes, author and date. Leave the title empty to use the map's own title. Empty notes print the map's description (its opening sentence on the Modern template), and an empty date prints today's date.
  4. Under On the sheet, switch elements on or off. They are described in the next section.
  5. Under Legend layers, leave out layers that need no key, or give one a shorter title for paper.
  6. Check the Before you print list. It shows anything that did not fit or was left off, such as legend rows that ran out of room or a paper size your plan reduced.
  7. Click Download PDF. A large sheet at high resolution takes a few seconds to build. Download PNG saves a flat image of the sheet instead.

Resolution only affects the map image. Text and legend symbols are vector shapes in the PDF, so they stay sharp at any setting. 150 DPI suits an office printer. Use 300 DPI for large-format or professional printing.

The Map image setting picks the compression. Automatic uses JPEG when imagery is visible, to keep photo-heavy sheets small, and lossless compression the rest of the time.

Templates

Template Layout
Modern The default. The map fills the sheet, with slightly rounded corners. The title, legend, scale bar and locator globe sit on the map as cards you can move, and one line under the map carries the credits
Classic A title band across the top. The legend and details sit in a panel beside the map on a landscape sheet, or in a band below it on a portrait one
Poster Classic with a display-size title and a heavier rule, for a sheet read from across a room
Minimal The map fills the sheet, with the title, legend and scale in a small box inside it. There is no room for notes

Moving things on the map

On the Modern template the title, legend, scale bar, locator globe, north arrow, QR code and logo are drawn on the map, and each one can be moved. Drag it on the preview and drop it where it reads best. It catches on the edges and the middle of the frame, and holding Alt places it freely. With the keyboard, tab to an element and use the arrow keys, with Shift for bigger steps.

To take an element off the sheet, click it and press Delete (or Backspace). Its switch under Map elements turns off with it, and turning the switch back on puts it back where it was.

Double-click an element to send it back to its own corner, or click Reset positions under Map elements to send them all back. A position is kept as a share of the frame, so a legend placed top right on Letter is still top right on A3. Positions are saved with a layout.

Dark map elements and a dark page

Under Map elements, two switches turn parts of the sheet dark:

  • Dark map elements makes the cards on the map dark with light text (title, legend, locator globe), and gives the scale bar, coordinate ticks, north arrow and Powered by Sarkoa light text with a dark outline. It suits dark basemaps and satellite imagery.
  • Dark page makes the paper around the map dark, with light text for the title band, panels and credits.

Legend colours, colour ramps and charts keep their colours, and so do the map itself, the QR code and your organization logo. A QR code or logo that would sit on a dark background gets a small light patch behind it, so it still scans and reads. A dark page is best for screens and PNG images: on paper it uses a lot of ink, and most printers leave a white edge around it.

Saved layouts

Editors of a map can save the composer's settings under a name and reopen them later, so a monthly report sheet or a standard field map does not have to be set up again each time. Anyone who can view the map can print it, but only its editors can save layouts. A map can hold up to 50 saved layouts.

What each element does

Element What it prints
Title The title card on the Modern template, or the title band on the others, with the subtitle, notes and the date shown. Turn it off for a sheet with no title at all
Legend A key for each visible layer that has one. Rows that do not fit are summarised as "+N more". Larger paper or the poster template makes room, and so does leaving a layer out of the legend. On the Modern template the text keeps its size and the legend adds columns as it grows
Scale bar A bar in metric or imperial units, true at the centre of the map. On the Modern template it sits on the map beside the legend, with a light outline that keeps it readable over imagery. Web Mercator stretches distances toward the poles, so when the frame covers enough latitude for one bar to mislead, a note saying the scale varies takes its place
North arrow Shows which way north is, and turns with the sheet when the map is rotated
Locator map A small inset showing where the frame sits in the wider world. It is left off automatically when the map already shows a continent or more. On the Modern template it is a small globe turned to the printed area
Coordinate ticks Latitude and longitude labels along the edge of the frame. On the Modern template they sit just inside the top and left edges with a light outline, so the map keeps its size. They are only drawn on flat, north-up sheets
Details Author, organization, date and projection, plus the date shown on a map with a time slider. The Modern template prints the date shown under the title and leaves the projection off
QR code A code that opens the live map. Any map can print one. On a map that is not public, whoever scans it signs in first and sees the map only if they already have access to it
Area over time chart On a sheet opened from a chart in the viewer (Share and export, then Print the map with this chart): the areas are outlined on the map in the chart's colours and the chart is a card on the sheet. On the Modern template you can move it like the legend. See Charting an area over time
Organization logo Your organization's attribution logo, once one is set in organization settings
Powered by Sarkoa A short credit linking to sarkoa.com. On the Modern template it sits in the bottom-right corner of the map and can be moved; on the others it ends the line under the map. Free and Community sheets always carry it. From Essential up it is off unless you switch it on

3D and globe views

Tilt the map, turn on 3D terrain or switch to the globe in the composer and the sheet prints that view, exactly as framed. A tilted or globe view has no single scale, so the sheet says "Perspective view, not to scale" in place of the scale bar, coordinate ticks are left off, and the PDF is not georeferenced. Switch back to 2D for a map to scale. Saved layouts keep the framing and scale but not the tilt.

Data credits and map attribution are always printed at the foot of the sheet, and there is no switch to remove them. Basemap and open data licences require the credit to stay with the map, on paper as much as on screen.

Maps of other worlds

A map on another world, such as the Moon or Mars, prints the same way. The scale bar uses that world's size, and the sheet states the projection as Mercator on that world ("Projection: Mercator, Moon"). The PDF is not georeferenced, because a geospatial PDF's coordinates would be read as Earth's. The composer lists this among its warnings, and preview_print_layout returns it as body_not_georeferenced. A map with no hosted imagery leaves the inset map off and gives the room back to the sheet. Polar caps are not printed.

Plan limits

Free Community and above
Paper A4 or Letter, or a custom size no larger than those Every size up to A0, and custom sizes up to 1189 mm on the long edge
Resolution Up to 150 DPI Up to 300 DPI
Powered by Sarkoa credit Printed Printed on Community; optional on Essential and above

Limits follow the plan of the organization that owns the map, the same rule as the credit on hosted maps. Someone printing your public map gets the sheet sizes of your plan, not theirs.

A request beyond the plan is not refused. It prints at the largest size and resolution the plan allows, and the composer says so before you download. See Pricing and plans for the plans themselves.

A georeferenced PDF

The PDF records where on Earth its map frame is, as an ISO 32000 geospatial PDF (often called a GeoPDF). Open it in Avenza Maps on a phone and your position shows on the printed map. QGIS and Adobe Acrobat read coordinates from it as well. The coordinates are in Web Mercator (EPSG:3857), the projection the map is drawn in. Sheets of a tilted or globe view, and of maps of other worlds, are not georeferenced.

A PNG export is a plain image and carries no location.

Check the exported map before taking it into the field. Open the delivery-area sample in its flat, north-up view, open Print or export as PDF, and choose Download PDF. Save the file as delivery-areas.pdf. On a computer with GDAL and its PDF reader installed, run:

gdalinfo delivery-areas.pdf

Look for a coordinate system identified as EPSG:3857 and check the corner coordinates against a place you know. For the sample’s opening view, the map covers the delivery areas around 75.69° W, 45.43° N, near Ottawa. Your corners will change if you pan, zoom or choose another sheet layout. Open the saved PDF in the PDF viewer you plan to use offline and check the same location before leaving internet coverage. GDAL geospatial PDF reader

Printing happens in the browser

Because the export runs on your computer, nothing can download a finished PDF for you. A script cannot fetch one, and there is no way to schedule prints or produce them in bulk. Someone opens the composer and clicks the download button.

Large sheets need a reasonably capable machine. An A0 sheet at 300 DPI is close to 10,000 by 14,000 pixels. When a browser cannot handle an image that size, the composer renders at the highest resolution it can and tells you which resolution it reached.

Preparing a sheet from the CLI, an agent, or the API

A layout can also be prepared outside the composer, which is useful when a script builds the map or an AI agent sets it up for you. The PDF is still made in the browser. Whichever of these prepares the layout, the result is a composer link with the layout already loaded, and the PDF is downloaded from there.

A layout is a small JSON document. Every field is optional, and {} means landscape A4 at 150 DPI with the modern template, framed on the map's saved opening view. This one prints an A3 sheet at 1:25,000 centred on downtown Ottawa:

{
  "paper": "a3",
  "orientation": "landscape",
  "template": "classic",
  "dpi": 300,
  "extent": { "mode": "center", "center": [-75.6972, 45.4215], "scale": 25000 },
  "text": { "title": "Rideau Canal locks", "author": "Parks team" },
  "elements": { "graticule": true }
}

extent decides what the frame shows. view is the map's saved opening view and data fits every visible layer. bbox takes [west, south, east, north], and center takes a point and a scale. A text field set to null uses the map's own title or description, while "" prints nothing. legend.layers leaves a layer out of the legend or gives it a new title, keyed by the layer's id in the map document. On the modern template placement moves an element on the map: {"legend": {"x": 1, "y": 0}} puts the legend top right, with x and y running from 0 to 1 across the room the element has.

CLI

sarkoa map print-layout preview MAP_ID --spec sheet.json
sarkoa map print-layout create MAP_ID --spec sheet.json --name "A3 site plan"
sarkoa map print-layout open MAP_ID LAYOUT_ID

preview checks a layout without saving it and prints the report: the page size, the scale, how many legend rows fit, and anything that was left off. create saves it under a name. open prints the composer link and opens it in your browser, or only prints it with --no-browser. list, get, update and delete manage saved layouts. update --spec replaces the layout's whole spec rather than merging into it, so start from the file that get --output writes. See CLI.

AI agents

Over MCP, preview_print_layout and create_print_layout take the same JSON and return the composer link, along with a report and warnings on how the sheet came out. An agent can lay out a sheet, see that the legend overflowed or that a note replaced the scale bar, adjust the layout and check again before giving you the link. list_print_layouts, get_print_layout, update_print_layout and delete_print_layout manage saved layouts. The full schema is available to agents as the sarkoa://schemas/print/v1 resource.

When an agent says a map is ready to print, expect a link rather than a file. Open it and check the preview before you download.

API

Method Path What it does
GET /api/v1/maps/{mapId}/print-layouts Saved layouts, plus what the map's plan can print
POST /api/v1/maps/{mapId}/print-layouts Save a layout, sent as { "name": "…", "spec": { … } }
GET, PATCH, DELETE /api/v1/maps/{mapId}/print-layouts/{layoutId} Read one layout, rename it or replace its spec, or delete it
POST /api/v1/maps/{mapId}/print-layouts/preview Lay out a spec without saving it

These routes are on the app host and take the same API key as the rest of the map API (see Authentication). Saving, reading, updating and previewing a layout all answer with composer_url and a report giving the page size, the scale, the legend rows shown and hidden, and the state of each element. capped says when the plan reduced the paper or resolution, and warnings lists what to fix, each with the path in the layout that caused it. A preview's composer_url carries the whole layout in the link, and is null when the layout is too long for one. Save it to get a short link.

A preview needs only view access to the map. Saving a layout, and changing or deleting one later, needs edit access.

  • Custom maps: building the map you are printing
  • Maps of other worlds: the Moon, Mars, Venus, Mercury, Ceres, Europa, Ganymede, Callisto, Io and Titan
  • Map documents: layer ids for the legend settings
  • MCP: the print tools alongside the rest of the agent tools
  • CLI: sarkoa map print-layout with the other map commands