sascha@2496: #=========================================================================== sascha@2496: # allowed DPIs sascha@2496: #=========================================================================== sascha@2496: dpis: [254, 190, 127, 56] sascha@2496: sascha@2496: #=========================================================================== sascha@2496: # allowed Formats sascha@2496: #=========================================================================== sascha@2496: formats: ['*'] sascha@2496: sascha@2496: #=========================================================================== sascha@2496: # the allowed scales sascha@2496: #=========================================================================== sascha@2496: scales: sascha@2496: - 25000 sascha@2496: - 50000 sascha@2496: - 100000 sascha@2496: - 200000 sascha@2496: - 500000 sascha@2496: - 1000000 sascha@2496: - 2000000 sascha@2496: - 4000000 sascha@2496: sascha@2496: outputFilename: 'pigma-${date}.pdf' sascha@2496: sascha@2496: #=========================================================================== sascha@2496: # the list of allowed hosts sascha@2496: #=========================================================================== sascha@2496: hosts: sascha@2496: - !localMatch sascha@2496: dummy: true sascha@2496: - !ipMatch sascha@2496: ip: www.camptocamp.org sascha@2496: - !dnsMatch sascha@2496: host: labs.metacarta.com sascha@2496: port: 80 sascha@2496: - !dnsMatch sascha@2496: host: terraservice.net sascha@2496: port: 80 sascha@2496: - !dnsMatch sascha@2496: host: tile.openstreetmap.org sascha@2496: port: 80 sascha@2496: sascha@2496: security: sascha@2496: - !basicAuth sascha@2496: matcher: !dnsMatch sascha@2496: host: c2cpc61.camptocamp.com sascha@2496: port:80 sascha@2496: username: xyz sascha@2496: password: yxz sascha@2496: preemptive: true sascha@2496: sascha@2496: sascha@2496: layouts: sascha@2496: #=========================================================================== sascha@2496: A4 portrait: sascha@2496: #=========================================================================== sascha@2496: metaData: sascha@2496: title: '${title}' sascha@2496: author: 'MapFish print module' sascha@2496: subject: 'Simple layout' sascha@2496: keywords: 'map,print' sascha@2496: creator: 'MapFish' sascha@2496: sascha@2496: titlePage: sascha@2496: pageSize: A4 sascha@2496: items: sascha@2496: - !text sascha@2496: spacingAfter: 150 sascha@2496: - !text sascha@2496: font: Helvetica sascha@2496: fontSize: 40 sascha@2496: spacingAfter: 100 sascha@2496: align: center sascha@2496: text: '${title}' sascha@2496: - !image sascha@2496: maxWidth: 160 sascha@2496: maxHeight: 160 sascha@2496: spacingAfter: 100 sascha@2496: align: center sascha@2496: url: http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw sascha@2496: - !image sascha@2496: maxWidth: 160 sascha@2496: maxHeight: 160 sascha@2496: spacingAfter: 100 sascha@2496: align: center sascha@2496: url: 'file://${configDir}/logo-camptocamp-transparent.png' sascha@2496: - !text sascha@2496: font: Helvetica sascha@2496: fontSize: 14 sascha@2496: align: left sascha@2496: text: | sascha@2496: Two layers are asked by the client: sascha@2496: - a base layer from Metacarta sascha@2496: - a transparent layer from Camptocamp.org (routes) sascha@2496: . sascha@2496: Some text is added over the map, just to demonstrate the absolute positionning. sascha@2496: footer: &commonFooter sascha@2496: height: 30 sascha@2496: items: sascha@2496: - !columns sascha@2496: config: sascha@2496: cells: sascha@2496: - paddingBottom: 5 sascha@2496: items: sascha@2496: - !image sascha@2496: maxWidth: 40 sascha@2496: backgroundColor: #FF0000 sascha@2496: align: left sascha@2496: url: '${configDir}/small-logo-camptocamp.png' sascha@2496: - !text sascha@2496: backgroundColor: #FF0000 sascha@2496: text: ©Camptocamp SA sascha@2496: - !text sascha@2496: align: right sascha@2496: text: 'Page ${pageNum}' sascha@2496: sascha@2496: #------------------------------------------------------------------------- sascha@2496: mainPage: sascha@2496: pageSize: A4 sascha@2496: rotation: true sascha@2496: header: sascha@2496: height: 50 sascha@2496: items: sascha@2496: - !text sascha@2496: font: Helvetica sascha@2496: fontSize: 30 sascha@2496: align: right sascha@2496: text: '${mapTitle}' sascha@2496: items: sascha@2496: - !map sascha@2496: spacingAfter: 30 sascha@2496: width: 440 sascha@2496: height: 483 sascha@2496: - !columns sascha@2496: # columns can have an absolute position. In that case, they need the 3 following fields: sascha@2496: absoluteX: 410 sascha@2496: absoluteY: 310 sascha@2496: width: 100 sascha@2496: items: sascha@2496: - !scalebar sascha@2496: type: bar sascha@2496: maxSize: 100 sascha@2496: barBgColor: white sascha@2496: fontSize: 8 sascha@2496: align: right sascha@2496: - !text sascha@2496: text: '${comment}' sascha@2496: spacingAfter: 30 sascha@2496: - !attributes sascha@2496: source: data sascha@2496: spacingAfter: 30 sascha@2496: columnDefs: sascha@2496: id: sascha@2496: columnWeight: 2 sascha@2496: header: !text sascha@2496: text: ID sascha@2496: backgroundColor: #A0A0A0 sascha@2496: cell: !text sascha@2496: text: '${id}' sascha@2496: name: sascha@2496: columnWeight: 5 sascha@2496: header: !text sascha@2496: text: Name sascha@2496: backgroundColor: #A0A0A0 sascha@2496: cell: !columns sascha@2496: config: sascha@2496: cells: sascha@2496: - backgroundColor: '${nameBackgroundColor}' sascha@2496: borderWidth: 1 sascha@2496: borderColor: '${nameBorderColor}' sascha@2496: items: sascha@2496: - !text sascha@2496: text: '${name}' sascha@2496: icon: sascha@2496: columnWeight: 2 sascha@2496: header: !text sascha@2496: text: Symbol sascha@2496: backgroundColor: #A0A0A0 sascha@2496: cell: !image sascha@2496: align: center sascha@2496: maxWidth: 15 sascha@2496: maxHeight: 15 sascha@2496: url: 'http://www.mapfish.org/svn/mapfish/framework/client/trunk/mfbase/mapfish/img/${icon}.png' sascha@2496: - !text sascha@2496: font: Helvetica sascha@2496: fontSize: 9 sascha@2496: align: right sascha@2496: text: '1:${scale} ${now MM.dd.yyyy}' sascha@2496: footer: *commonFooter