Skip to main content

LayerDefinitions

Represents a collection of LayerDefinition instances.

Index

Constructors

constructor

Methods

[iterator]

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

  • copyToRef<T>(layerDefinitions: LayerDefinitions | { json?: LayerDefinitionsDTO }, dst: T): T
  • 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.