Creates a new instance of the LayerListMapServiceItem class.
The deferred visibility to be applied to this item after the complete layer list model is set up and ready - i.e. after processing all visibilities, startup workflows, parameters etc. This will be applied and then the variable deleted, when the applyDeferredInitialVisibility function is called.
Binding token for LayerListItem.displayItem (if any), used by the LayerListItemCollection class.
Visibility binding token (if any), used by the LayerListItemCollection class to manage visibilities
Indicates if all ancestors of this item are visible or not. This item will be effectively visible only if all its ancestors are visible as well.
Determines if the opacity of this item can be adjusted or not.
Determines whether the item can be displayed in the layer list.
Determines whether or not the visibility of a LayerList item can be controlled. False by default
A LayerListItemCollection object, representing the current node's children
A boolean indicating that this item is the originator of the current user click. It will remain false at all other times.
Observable indicating whether this LayerListItem is to be displayed in the layer list or not
A boolean which indicates whether this item should be setup to handle layer actions. False by default.
A boolean which indicates whether this item should be setup to handle map service actions. False by default.
Indicates whether the legend items for this item are displayed or not
Indicates whether this item has one or more children that are displayed in the layer list.
Indicates whether this item should have a radio toggle control next to it instead of a checkbox. In some rare cases, an item may be configured as mutually exclusive (see isMutuallyExclusive), yet should still show with a check box. For example, when there is only one visible item in a mutually exclusive group.
Tooltip for this Layer's icon, if any
The icon Uri for this layer (if applicable). Will be set if available during mapService / layer addition.
The unique identifier for this layer list item. Will be "GCXLayerListRootNode-[random string]" if this is the root node.
Observable indicating whether this LayerListItem is in the active theme or not.
Indicates if this item is visible at the current map scale.
Indicates whether this LayerListItem is currently effectively visible. An item is only effectively visible if it, and all it's ancestors are set visible
Indicates whether this LayerListItem is expanded or not.
Indicates whether this item is mutually exclusive, i.e. whether toggling the visibility of this item on will toggle off the visibility of its siblings.
A boolean which indicates whether this item represents a layer or service that was created by the user at runtime. False by default.
Indicates whether this LayerListItem is currently set to visible or not.
Description of layer actions element with name of layer.
Description of layer folder expand/collapse button with name of layer.
A reference to the {@link infrastructure.layerList.LayerList} object that contains this LayerListItem
Description of toggle button with name of layer.
Whether the legend has multiple items or not to display. Used to determine whether legend element should be tabbable or not.
Indicates whether the legend swatch for this LayerListItem is visible when the "onlyShowSwatchesOnVisibleLayers" configuration option has been selected.
A Collection of legends associated with this Layer List item
The legend icon Uri or swatch element - if there is only one legend item associated with this item, then this will be the swatch element for that legend item
Tooltip for the icon representing the legend item(s), if any
The mapService associated with the current node - if any
Description of map service actions element with name of service.
The name of this item as it appears in the layer list.
A collection of child items that are populated on the fly - only when the user expands a given folder. This is for memory and performance reasons
The current opacity of the associated mapService. This will remain undefined unless the opacity of this LayerList item can be adjusted.
The current node's parent - if any
Indicates whether this item's parent is currently effectively visible or not
The name of the mutually exclusive group that this item belongs to, if any. Toggling on an item within this group will toggle off other mutually exclusive items that belong to the same group.
The type of item this object represents
Applies the previously deferred visibility (if any) to this item after the complete layer list model is set up and ready
Set up the descriptive tooltips to include the name of the layer and to state whether the layer is in visible range. This is done for WCAG purposes.
Updates inActiveTheme when it changes in the underlying geocortex map service (if available)
Remove any bindings and perform any necessary logic for item removal
Returns true if a given layer list item is either not a folder but in the active theme, or if it is a folder, has at least one non-folder item in it's sub tree which is in the active theme and can be displayed in the layer list OR is hidden but participates in the layer list.
Optional parameter. If specified, will perform computation on the given item, otherwise will defau8lt to this layer list item.
Gets the collection of ancestor nodes, ordered from nearest to farthest.
Gets all of this node's descendant items, in depth-first traversal order.
Gets the root node in the layer list hierarchy.
Gets this node, as well as it's ancestors, ordered from nearest to farthest
Gets this node, as well as it's descendants, in depth-first traversal order
Gets all of this node's siblings, in the order that they appear in the layer list.
Populates the containedMapServices array of any parent folder. This method must be invoked manually when needed.
Manages the on demand item collection. This collection is only populated when the needed - i.e. when the respective layer list folder is expanded. When not needed, it's pulled out from the collection and from the dom. This has a slight insignificant penalty for smaller layer lists but a huge benefit for large ones
Sets the ancestor visibility. This should be set to true only if all ancestors are set visible NOTE: This function call will not check to see if all ancestors are actually visible or not. Use with caution.
Set the visibility of this item in the layer list. This is a special function which should be called in preference to setting isVisible directly, since it also keeps track of whether this item is the originator of the current user click.
Set the visibility of this mapService item in the layer list
The visibility of this map service item
If true, will force ancestor visibilities to sync up with this map service item
Removes the binding to the active theme
In case of the configurable Layer List this class represents a layer list item that corresponds directly to an "atomic" map service, i.e. one whose visibility is toggled as a whole rather than changing the visibility of individual layers. In case of a standard layer list or AWAB, this class will behave like a normal map service.