Class: MapRootState

MapLayerState.MapRootState(layerGroupState)

Class representing a map group state as map root

Constructor

new MapRootState(layerGroupState)

Creating a map root state instance

Parameters:
Name Type Description
layerGroupState LayerGroupState

the layer tree group config

Source:

Extends

  • MapGroupState

Methods

createExternalGroup(name) → {ExternalMapGroupState}

Create an external map group state

Parameters:
Name Type Description
name string

the external map group name

Source:
Returns:

The external map group state

Type
ExternalMapGroupState

removeExternalGroup(name) → {ExternalMapGroupState|undefined}

Create an external map group state

Parameters:
Name Type Description
name string

the external map group name to remove

Source:
Returns:

The removed external map group or undefined if the name is unknown

Type
ExternalMapGroupState | undefined