Class representing a map

Constructors

  • Parameters

    • store: Record<string, any>

      Store

    • country: string

      Country

    • langCode: string

      Language code

    Returns MapApp

Properties

map: any
mapConfig: any
popup: any
store: any

Methods

  • Add layers to map

    Parameters

    • store: Record<string, any>

      Store

    • basemapsControl: Record<string, any>

      Basemaps object

    • langCode: string

      Language code

    Returns Promise<void>

  • Add indicator layer to map

    Parameters

    • country: string

      Country code (com/mdg/mus/syc)

    • category: string

      Category

    • geometryLevel: string

      Geometry level

    • subcategory: string

      Subcategory

    • indicatorName: string

      Indicator name

    • selectedYear: string

      Selected year

    • uuidIndicator: string

      Indicator UUID

    Returns void

  • Add overlays to map

    Parameters

    • store: Record<string, any>

      Store

    • tocControl: Record<string, any>

      TOC object

    • langCode: string

      Language code

    Returns Promise<void>

  • Parameters

    • indicatorData: any

      Indicator data

    Returns number[]

    • Value steps
  • Create layer structure

    Parameters

    • layerConfig: Record<string, any>

      Layer configuration

    • store: Record<string, any>

      Store

    Returns Promise<unknown>

    • OpenLayers layer object
  • Create indicator layers

    Parameters

    • geometry: Record<string, any>

      Layers geometry

    Returns void

  • Get geometry from database

    Parameters

    • country: string

      Country (com/mdg/mus/syc/all)

    Returns Promise<unknown>

  • Returns any

    • OpenLayer map
  • Hide all indicator layers

    Returns void

  • Parameters

    • value: number

      Number to round

    Returns number

    • Number
  • Style for indicator layer

    Parameters

    • feature: any

      openlayers feature object

    • colorScheme: string = 'default'

      color Schema

    Returns Style

    • OpenLayers style object