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.

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.

Export what you see, not survey-grade The scale bar is computed for the exported extent, but this is not a true-to-scale plot: label sizes and symbols scale with the pixel ratio. A server-side renderer for scale-true PDF can be added behind the same dialog later — the interface is reserved for it.

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.