gws.base.legend
¶
Source code: gws.base.legend
Submodules¶
Package Contents¶
- gws.base.legend.combine_outputs(lros: list[gws.LegendRenderOutput], options: dict = None) gws.LegendRenderOutput | None ¶
- class gws.base.legend.Config(*args, **kwargs)¶
Bases:
gws.ConfigWithAccess
Layer legend confuguration.
- cacheMaxAge: gws.Duration = '1d'¶
max cache age for remote legends
- options: dict | None¶
provider-dependent legend options
- class gws.base.legend.Object¶
Bases:
gws.Legend
Generic legend object.
- cacheMaxAge: int¶
- options: dict¶
- configure()¶
Configuration hook.
- gws.base.legend.output_to_bytes(lro: gws.LegendRenderOutput) bytes | None ¶
- gws.base.legend.output_to_image(lro: gws.LegendRenderOutput) gws.Image | None ¶
- gws.base.legend.output_to_image_path(lro: gws.LegendRenderOutput) str | None ¶