Class: LayerItem

vcs.vcm.widgets.legend.LayerItem

Class representing a leaf node within a tree widget, managing a map layer.

Extends

Members

activeStyleName{string} {null}

The name of the style currently active on this item

availableStyles{Array.<string>}

The named styles available to this layer

className{string}

class Name of the Object

id{string}

The unique id of the given item

level{number}

The nesting level of this tree item

state{string}

Loading state of the item: inactive, active (aka loaded and showing), loading or indeterminate

titleObject{Object}

Translateable title object. Where the key represents the local, and the value the translation for example: { en: 'Example', de: 'Beispiel' }

visible{boolean}

Whether the item should be displayed

Methods

activate(active, ignoreViewpoint)

activates this LayerItem

Name Type Description
active boolean
ignoreViewpoint boolean

getViewPoint(){vcs.vcm.util.ViewPoint|null} inherited

returns the viewpoint for this treeitem

Deprecated
  • v3.6

    gotoViewpoint() inherited

    Goes to this tree items viewpoint, if there is one defined

    Type Definitions

    vcs.vcm.widgets.legend.LayerItem.Options{vcs.vcm.widgets.legend.TreeItem.Options}

    Properties:
    Name Type Description
    layerName string

    the layer name for which this item manages the state

    availableStyles Array.<string>

    a list of named styles available to this layer

    style Object

    the options to a declerative style, they will automatically be added to availableStyles