LayerDefinitions
Index
Constructors
Methods
Constructors
constructor
Constructor.
Parameters
definitions: LayerDefinition[] = []
Definitions the collection shall consist of.
Returns LayerDefinitions
Methods
[iterator]
Iterates all contained LayerDefinition. Use this to get hold of all LayerDefinition instances the collection consists of.
Returns IterableIterator<LayerDefinition>
get
Gets the LayerDefinition instance with the same id. If no such instance is found then `notFound is returned.
Parameters
id: string
Id of layer definition to get.
Returns LayerDefinition
Layer instance.
publicstaticcopyToRef
Copies the layer definitions defined by layerDefinitions to the dst.availableLayerDefinitions property.
Type parameters
Parameters
layerDefinitions: LayerDefinitions | { json?: LayerDefinitionsDTO }
Layer definitions to copy to dst.permissions.
dst: T
Object to assign property on.
Returns T
Reference to dst.
publicstaticfromDTO
Creates a LayerDefinitions instance for a
Record<string, { permission_str: string }>
lookup where the properties are the layer ids. This is how a LayerDefinitions instance is represented in JSON.Parameters
optionalsrc: LayerDefinitionsDTO
Source to copy from.
Returns LayerDefinitions
change with converted property.
Represents a collection of LayerDefinition instances.