Map features
Print & export
A composed map sheet — title, legend, scale bar, attribution, date — rendered entirely in the browser at up to 300 dpi.
Try it: the printer button in the top-left control stack. Pick A4 landscape and 300 dpi, then take the PDF, the PNG, or send it to the browser's print dialog.
How it works
A hidden clone of the map is created at the target paper size and pixel ratio, sharing the live style — including every overlay you have switched on. Once it reports idle, its canvas is composed onto a layout canvas together with the legend, a rounded scale bar and the attribution collected from all active sources.
- Paper: current view, A4 or A3, landscape or portrait
- Resolution: 96, 150 or 300 dpi — everything in the layout scales with it
- Legend images and swatches are drawn into the sheet, not screenshotted
- PDF pages are real paper sizes: an A4 export measures 297 × 210 mm and prints without "fit to page"
- No server, no upload — the map never leaves the browser
The PDF is the composed sheet placed on the page, centred inside 10 mm margins. It is embedded as PNG rather than JPEG: a map is fine lines and small text, exactly what JPEG artefacts ruin. jsPDF only loads when someone actually asks for a PDF — it is the heaviest module in the client.
Configuration
Print is on by default. The meta.title becomes the pre-filled sheet title,
and layer legends flow into the sheet automatically:
Narrowing the choices
A top-level print block decides what the dialog offers — useful when an
organisation wants one format on one paper size and no discussion:
"print": {
"formats": ["pdf"],
"sizes": ["A4-landscape"],
"dpi": [300],
"elements": ["title", "legend", "scalebar", "attribution", "date"]
}
Everything is optional; the defaults are PNG and PDF, current view plus A4 in both
orientations, 96/150/300 dpi, and all sheet elements. Dropping an entry from
elements removes it from the composed sheet — a map without a title block, or
without the date, is one key away.