A class that represents legend items used to group a collection of child items.

Hierarchy (view full)

Constructors

Properties

The instance of RampMap API scoped to a single Vue R4MP application.

APIScope

_children: LegendItem[] = []
_content: string
_controls: undefined | LegendControl[]
_disabledControls: undefined | LegendControl[]
_exclusive: boolean
_expanded: boolean
_hidden: boolean
_infoType: InfoType
_lastVisible?: LegendItem
_loadPromise: DefPromise<void>
_name: string
_parent?: LegendItem = undefined
_type: LegendType
_uid: string
_visibility: boolean
_visibleChildren: LegendItem[]

Accessors

  • get $element(): App<Element>
  • Returns App<Element>

  • get $vApp(): ComponentPublicInstance
  • The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

    Returns ComponentPublicInstance

    APIScope

Methods

  • Check if a control is available for the legend item. Returns:

    • true if the control is included in legend item's available controls
    • false if control is not included, or if control is disabled
    • undefined if controls are not defined

    Parameters

    Returns undefined | boolean

  • Toggle visibility state of a legend item. Needs to verify parent visibility is updated.

    Parameters

    • Optionalvisible: boolean
    • updateParent: boolean = true

      whether or not toggleVisibiliity should 'bubble-up' the legend tree

    Returns void