mapnik-org/mapnik — Issue #199: Leaving Cairo surfaces open for post-map drawing.
Author: artemp
Created: 2011-10-11 07:41:56+00:00
State: open
Labels: Cairo_Renderer

When using the Cairo renderer to produce output, the output phase is ended with a showpage(), this causes subsequent drawing on paged media, such as PDF, to appear on a new page.

However, it could be that someone wanted to add a watermark, copyright or scale to the output: this is easily done using Cairo, but not if the page has been finished.

An option to render not to close the page would be nice, this would allow annotations on the map more easily, it would also allow for example the Dutch cycling map (www.openfietskaart.nl) which uses different layers (basemap, roads, cycling routes) to easily reuse the XML files when exporting to PDF and create a PDF file with all these layers on top of each other on one page instead of different pages. ;)