3.1. Map

This is the top level tag / object in a mapnik setup, it defines the map extent and global parameters / defaults.

TODO: contains …​

Table 1. Map Attributes
Attribute Type Default Description

base

string

none

name of a <FileSource> to find the input file in

background-color

color

transparent

background-image

file path

none

background-image-comp-op

SVG composition

none

background-image-opacity

float

1.0

srs

proj4 projection

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

buffer-size

float

0.0

maximum-extent

4xfloat

font-directory

directory path

none

minimum-version

version string

none

paths-from-xml

boolean

true

Whether relative paths are relative to the directory the XML file is in, or the current working directory.