new vcs.vcm.widgets.legend.TreeItem(options)
| Name | Type | Description |
|---|---|---|
options |
vcs.vcm.widgets.legend.TreeItem.Options |
Subclasses
- vcs.vcm.widgets.legend.AbstractGroupItem
- vcs.vcm.widgets.legend.FlightInstanceItem
- vcs.vcm.widgets.legend.GroupLayerItem
- vcs.vcm.widgets.legend.LayerItem
- vcs.vcm.widgets.legend.PluginItem
Members
-
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
-
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 the tree item
Name Type Description activeboolean the state to activate to, false will deactivate
ignoreViewpointboolean if there is a viewpoint set, it is not activated
-
getViewPoint(){vcs.vcm.util.ViewPoint|null}
-
returns the viewpoint for this treeitem
- Deprecated
- v3.6
-
gotoViewpoint()
-
Goes to this tree items viewpoint, if there is one defined
Type Definitions
-
vcs.vcm.widgets.legend.TreeItem.Options{Object}
-
Properties:
Name Type Argument Default Description titleObject the translatable title object, for example: { en: 'Example', de: 'Beispiel' }
infoUrlstring | undefined the url to more information
infoUrlTargetstring | undefined any link target, including the speciel 'iframe' target, which will open the link as an ifram in the content window
viewpointNamestring | undefined an optional viewpoint to be activated on click
showInLegendIfDisabledboolean <optional>
true
virtualcityMAP 3.6