Output.Cairo_renderExport OSM data to an image using Cairo.
Components (red, green, blue) of a color, each between 0. and 1..
type color_rgba = color_rgb * floatA color and a transparency (between 0. and 1.).
type file_info = | Surface of Cairo.Surface.t * supplement_file_info| Image of Cairo.Image.format| PDF of string| PNG of string * Cairo.Image.format| PS of string| SVG of string| XLib| Win32| QuartzThe kind of file to which Cairo shall output
module type T = sig ... endtype 'role style_general = {style_node : Cairo.context -> Cosmetyc.Common.Tags.t -> float;Return the radius of the drawn point
*)style_way : Cairo.context -> Cosmetyc.Common.Tags.t -> color_rgba option;Return a color if it is an area, None otherwise.
style_relation : Cairo.context ->
Cosmetyc.Common.Tags.t ->
'role ->
'role style_general;Given the tags of the relation and the current role, state how to draw the current object.
*)}The style for General. It should be enough to implement most styles. Each function are meant to be functions with side effects: they shall call Cairo.set_* functions, and return some information dependent of the kind of object being treated.
module General
(Repr : Cosmetyc.Signatures.Representation) :
T with module Repr = Repr with type style = Repr.Relation.role style_generalGeneric output, taking a function setting the styles for Cairo.