gws.base.legend.core

Source code: gws.base.legend.core

Module Contents

gws.base.legend.core.combine_outputs(lros: list[gws.LegendRenderOutput], options: dict = None) gws.LegendRenderOutput | None
class gws.base.legend.core.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.core.Object

Bases: gws.Legend

Generic legend object.

cacheMaxAge: int
options: dict
configure()

Configuration hook.

gws.base.legend.core.output_to_bytes(lro: gws.LegendRenderOutput) bytes | None
gws.base.legend.core.output_to_image(lro: gws.LegendRenderOutput) gws.Image | None
gws.base.legend.core.output_to_image_path(lro: gws.LegendRenderOutput) str | None
class gws.base.legend.core.Props(*args, **kwargs)

Bases: gws.Props

Object properties.

type: str