Creates a new single layer item.
Optional
parent: LegendItemReturns item's parent - not yet initialized
Readonly
$iThe instance of RampMap API scoped to a single Vue R4MP application.
Optional
_coverOptional
_descriptionOptional
_lastOptional
_layerOptional
_parentThe instance of Vue R4MP application controlled by this InstanceAPI.
This is just a shorthand for this.$iApi.$vApp
.
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
Sets new parent for the legend item
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
Check if a control is available for the legend item. Returns:
name of the control
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.
Enable a disabled control, or disable an enabled control.
name of the control
true for enabling, false for disabling
Toggle visibility state of a layer item. Needs to verify parent visibility is updated.
Optional
visible: 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.