gws.plugin.legend.remote

Remote legend.

Downloads legend images from URLs and combines them into one image. Downloads are cached for cacheMaxAge. Responses that are not images are logged and skipped.

Example:

legend {
    type "remote"
    urls ["https://example.com/legend_1.png", "https://example.com/legend_2.png"]
}

Source code: gws.plugin.legend.remote

Package Contents

class gws.plugin.legend.remote.Config

Bases: gws.base.legend.Config

Legend images loaded from external URLs.

urls: list[gws.Url]

URLs of external legend images.

class gws.plugin.legend.remote.Object

Bases: gws.base.legend.Object

Remote legend.

urls: list[str]

URLs of the legend images.

configure()
render(args=None)