Layout and printing
Battle maps
Print a gridded battle map at tabletop scale on a home printer, split across pages on the grid lines.
Making a battle map
Upload the map picture to Library › Battle Maps with Upload Battle Map in the sidebar. Every picture in that folder opens as a battle map, because the folder's defaultType is battle-map.
For a picture somewhere else, open it and choose Battle Map in the type menu at the top of its page. The menu also offers Image, Portrait and Overview Map. See Maps for overview maps.
Dunjii keeps the map's settings in a .metadata.md file beside the picture, which starts with type: battle-map. Uploads take PNG, JPEG, WebP or GIF, up to 5 MB on the free plan and 50 MB on Pro.

Marking the grid
A new battle map has no grid. Drag a rectangle over the part of the picture that has one. Dunjii finds the grid lines in the artwork inside the rectangle and fits its grid to them. The chip above the rectangle shows how many matches it found, and its arrows step between them. When the artwork has no grid lines, the chip shows 0 and you set the square size yourself.
To adjust the grid:
- Drag the rectangle's corners and edges to resize it, or its middle to move it. The handle above it turns it.
- Point at a square: drag one of its corners to change the square size, or the arrows in its middle to shift the lines.
- Each handle shows its numbers in a box you can type into.
Drag another rectangle outside the first to add a second grid to the same picture. All grids on a picture share one square size and print scale. Delete grid (⌫) removes the selected one.

How the pages split
Dunjii cuts the map only on grid lines, so no square is split across two pages. Only the outer edge of the grid can have a part square. It picks portrait or landscape, whichever needs fewer pages.
Print size on the map's bar sets:
- Square: how wide a square prints, from 0.25 to 2 inches. The default is 1 inch.
- Margin: a strip of the picture printed around the selected grid, 0 to 4 squares wide, to hold while you cut and tape.
The paper and margins come from your print settings. To set them for this map alone, open Document settings on the map's page and change Paper or Margins. At 1-inch squares, a portrait Letter page fits 7 × 9 squares with Standard margins and 8 × 10 with Minimum.

Printing double-sided
Choose Print on the map's page, then set Optimize for to Double-sided. Dunjii adds a back after each page. The back prints a code and the map's name, behind the grid on that page.
The code is a row letter and a column number, counted from the left as you look at the backs with the map face down. So on a map four pages wide, the back of the top-left page reads A4. Tape the pieces face down in code order.
The name is the grid's name, if you gave it one in the file. A picture with one unnamed grid prints its file name. Otherwise the backs read Grid 1, Grid 2.

Image and grid lines
Image on the map's bar switches between Color and Black & white and sets Brightness. Black & white adds White point, Black point and Contrast, so a dark map can print light. A theme that prints in gray, such as Clean Lines (B&W), prints the map in black and white too.
Grid lines sets the color, opacity and width of the lines, and of an outline drawn under them so the grid shows on both light and dark ground.

The settings in the file
The map bar writes a map: block in the picture's .metadata.md. Document settings write print:.
---type: battle-mapmap: squareSizePx: 70One square of the picture, in pixels. Shared by every grid on it. outputSquareInches: 1How wide a square prints, from 0.25 to 2. bw: falsetrue prints the picture in black and white. grids: - name: CellarPrinted on the back of each page. Optional. rotationDeg: 0 gridXPx: 8 gridYPx: 6 gridWidthPx: 1663 gridHeightPx: 1109The rectangle the grid covers, in pixels of the picture. tileOffsetXPx: 62 tileOffsetYPx: 64Where the first whole square starts inside the rectangle. bufferSquares: 0The margin printed around this grid, in squares.print: paper: tabloidThis map's paper. A folder print uses your default paper instead.---The block also contains the grid line colors and the black and white settings. Add orientation: portrait or orientation: landscape under map: to stop Dunjii choosing for you.