gws.plugin.template.map

Map-only templates.

The map template renders only the first map of the render input, without any page layout. The map fills the template pageSize. The output is HTML, PDF or PNG, depending on the mimeOut of the render input; HTML is the default.

Example:

printers+ {
    template {
        type "map"
        title "Map only"
        mimeTypes [ "application/pdf" ]
    }
}

Source code: gws.plugin.template.map

Package Contents

class gws.plugin.template.map.Config

Bases: gws.base.template.Config

Template that renders only the map.

class gws.plugin.template.map.Object

Bases: gws.base.template.Object

Template that renders only the map, as HTML, PDF or PNG.

render(tri)
class gws.plugin.template.map.Props

Bases: gws.base.template.Props