Class representing a TOC

Hierarchy

  • Control
    • Toc

Constructors

  • Create a TOC

    Parameters

    • store: Record<string, any>

      Store

    • mapApp: any

      Map

    • country: string

      Country code

    • langCode: string

      Language code

    • rightPanel: any

      Right panel

    Returns Toc

Properties

country: string
langCode: string
layersContainerDiv: HTMLElement
legendModal: any
mapApp: any
overlaysContainerDiv: HTMLElement
rightPanel: any
store: any
timeSliderContainer: HTMLElement

Methods

  • add Information to Service panel

    Parameters

    • infoText: any

      Info text

    Returns void

  • Add configuration (categories, subcategories, indicators) depending on regional or national page

    Parameters

    • conf: Record<string, any>

      configuration

    • langCode: string

      language code

    Returns void

  • Add configuration (categories, subcategories, indicators) for all countries

    Parameters

    • conf: Record<string, any>

      configuration

    • langCode: string

      language code

    Returns void

  • Parameters

    • countryConfig: Record<string, any>

      Country configuration

    • langCode: string

      Language code

    • countryCode: string

      Country code

    • container: HTMLElement

      Container

    Returns void

  • Parameters

    • overlayConfig: Record<string, any>

      Overlays configuration

    • langCode: string

      Language code

    Returns void

  • Change layer transparency

    Parameters

    • event: any

      Input/Change event

    Returns void

  • Parameters

    • tag: string

      HTML tag

    • Optionalattributes: Record<string, string>

      id and other attributes

    • OptionalclassName: string

      class name if exists

    • OptionalinnerText: string

      innerText

    • OptionalinnerHTML: any

      innerHTML

    Returns HTMLElement

    • HTML Element
  • Parameters

    • container: HTMLElement

      Container

    • uuidIndicator: any

      Indicator

    • steps: number

      Steps

    Returns void

  • Prepare data to create charts and table

    Parameters

    • dataToVisualizeBar: any

      Data to visualize in a bar chart.

    • dataToVisualizeTime: any

      Data to visualize in a time chart.

    • dataPathBar: Record<string, any>

      Path or identifier for the bar chart data.

    • dataPathTime: Record<string, any>

      Path or identifier for the time chart data.

    • selectedCountryCode: string

      Selected country code

    • indicatorInfo: any

      Indicator Info with unit

    • uuidIndicator: string

      Indicator UUID

    • indicatorProjected: Record<string, any>

      Indicator UUID

    Returns void

  • Select geometry level

    Parameters

    • uuidIndicator: string

      Indicator UUID

    • category: string

      Category

    • subcategory: string

      Subcategory event

    • indicatorName: string

      Indicator name

    • newValue: string

      Dropdown value

    Returns Promise<void>

  • Select year

    Parameters

    • uuidIndicator: string

      Indicator UUID

    • category: string

      Category

    • subcategory: string

      Subcategory event

    • indicatorName: string

      Indicator name

    • geometryLevel: string

      geometry level

    • selectedYear: string

      Dropdown value

    • selectedCountryCode: string

      Country code

    Returns void

  • Toggle category

    Parameters

    • event: any

      Click event

    Returns void

  • Toggle indicator

    Parameters

    • event: any

      Click event

    Returns void

  • Click event

    Parameters

    • event: any

      Click event

    Returns void

  • Toggle subcategory

    Parameters

    • event: any

      Click event

    Returns void

  • Update the overlay layer

    Parameters

    • activeLayerId: string

      The ID of the layer to display

    • isChecked: boolean

      visibility of layer

    Returns void

  • Update Metadata and Legend

    Parameters

    • layer: any

      Input Layer

    • layerConfig: Record<string, any>

      Input Layer

    • langCode: string

      Language code

    Returns void