gws.common.template¶
-
class
gws.common.template.
TemplateQualityLevel
(*args, **kwargs)[source]¶ Quality level for a template
-
name
= ''¶ level name
-
dpi
= None¶ dpi value
-
-
class
gws.common.template.
Config
(*args, **kwargs)[source]¶ -
dataModel
= None¶ user-editable template attributes
-
mimeTypes
= None¶ mime types this template can generate
-
path
= None¶ path to a template file
-
subject
= ''¶ template purpose
-
qualityLevels
= None¶ list of quality levels supported by the template
-
text
= ''¶ template content
-
title
= ''¶ template title
-
-
class
gws.common.template.
FeatureFormatConfig
(*args, **kwargs)[source]¶ Feature format
-
description
= None¶ template for feature descriptions
-
category
= None¶ feature category
-
label
= None¶ feature label on the map
template for feature teasers (short descriptions)
-
title
= None¶ feature title
-
-
class
gws.common.template.
LayerFormatConfig
(*args, **kwargs)[source]¶ Layer format
-
description
= None¶ template for the layer description
-
-
class
gws.common.template.
Object
[source]¶ -
props
¶
-
render
(context: dict, mro: gws.types.MapRenderOutput = None, out_path: str = None, legends: dict = None, format: str = None) → gws.types.TemplateOutput[source]¶
-
-
gws.common.template.
from_config
(root, cfg, shared: bool = False, parent: gws.types.IObject = None) → gws.types.ITemplate[source]¶