Creates a new single layer item.
Optionalparent: LegendItemOptional_Optional_Optional_Optional_Optional_Readonly$iThe instance of RampMap API scoped to a single Vue R4MP application.
Returns children of the legend item
Sets new children for the legend item
new child legend items
Returns if item follows "exclusive set" behaviour
Returns if item is expanded
Returns if item is hidden
Returns if the layer is a sublayer
Returns Ramp Layer associated with legend item.
Returns the id of the layer
Returns layer index only if the layer item is a sublayer. Otherwise returns undefined
Returns UID of the layer
Returns the load promise for this legend item
Returns the item's name
Sets the item's name
new item name
Returns item's parent - not yet initialized
Returns the id of the parent layer if this item is a sublayer. Otherwise undefined
Returns true if symbology stack is expanded.
Returns the item's type
Returns the item's uid
Returns if item has visibility
Updates parent visibility after a child item's visibility toggles.
given child legend item
Ensures visibility rules are followed if legend item is nested in another item on initialization.
Executes the "click" logic on a symbology item. Sets the checkbox visibility, propagates any edge-cases to this layer item, and applies any filters to the layer
the uid of the legend symbology
Optionalvisible: booleanif we are clicking it on or off. Undefined will perform a toggle.
Simulates a "click" interaction on a symbology item at a specific index in the symbol stack
the index of the legend symbology
if we are clicking it on or off
Check if a control is available for the legend item. Returns:
name of the control
Sets legend item to an error state
Returns a legend config representation of this item.
Check if a control is available for the layer item.
name of the control
Indicates if control is enabled on this legend item or layer
Have the item adapt and update to the given layer as it loads. Is either called in the constructor, or through the legend api
the layer to load. If undefined, layer will be fetched via instance API using id/uid.
Runs right after legend item is added
Runs right before legend item is removed
Sets legend item back to a loading/placeholder state
Enable a disabled control, or disable an enabled control.
name of the control
true for enabling, false for disabling
Sets the visibility of the symbology with the given uid If the provided UID is undefined, set the visibility of all symbols Only changes the visible state of the checkbox. Does not apply symbol filters.
the uid of the legend symbology
Optionalvisible: booleanThe new visibility value. Undefined will perform a toggle.
Indicates if any symbology stack items are visible
Toggle expand state of a legend item.
Optionalexpanded: booleanset legend item to expanded/not expanded if given, otherwise toggle
Toggle hidden state of a legend item.
Optionalhidden: booleanset legend item to hidden/not hidden if given, otherwise toggle
Toggles the symbology expand and returns the new value
Optionalexpanded: booleanoptional parameter to toggle expanded to a certain value
Toggle visibility state of a layer item. Needs to verify parent visibility is updated.
Optionalvisible: booleanwhether or not toggleVisibility should 'bubble-up' the legend tree
ignore control check, used when visibility is changed outside of legend fixture
A class that represents a generic item in the legend.