Source code for gws.ext.layer.group

"""Group layer."""

import gws.common.layer
import gws.gis.extent
import gws.gis.legend

import gws.types as t


[docs]class Config(gws.common.layer.Config): """Group layer""" layers: t.List[t.ext.layer.Config] #: layers in this group
[docs]class Object(gws.common.layer.Group):
[docs] def configure(self): super().configure() self.layers = gws.common.layer.util.add_layers_to_object(self, self.var('layers'))