Class MetadataBuilder

Builder class to help build the metadata

Methods

  • Add an attribution

    Parameters

    • displayName: string

      name of the attribution

    • href: string

      link to the attribution

    Returns void

  • Add the layer metadata

    Parameters

    • name: string

      name of the layer

    • layer: LayerMetaData

      layer metadata

    Returns void

  • Add the S2 tile metadata

    Parameters

    • face: Face

      face of the tile

    • zoom: number

      zoom of the tile

    • x: number

      x position of the tile

    • y: number

      y position of the tile

    • llBounds: BBox

      the lon-lat bounds of the tile

    Returns void

  • Add the WM tile metadata

    Parameters

    • zoom: number

      zoom of the tile

    • x: number

      x position of the tile

    • y: number

      y position of the tile

    • llBounds: BBox

      the lon-lat bounds of the tile

    Returns void

  • Describe the data

    Parameters

    • description: string

      description of the data

    Returns void

  • Set the encoding of each vector tile. [default=none]

    Parameters

    • encoding: Encoding

      encoding of each tile

    Returns void

  • Set the extension

    Parameters

    • extension: string

      extension of the data

    Returns void

  • Set the name

    Parameters

    • name: string

      name of the data

    Returns void

  • Set the scheme of the data. [default=fzxy]

    Parameters

    • scheme: Scheme

      scheme of the data

    Returns void

  • Set the type of the data. [default=vector]

    Parameters

    Returns void

  • Set the version of the data

    Parameters

    • version: string

      version of the data

    Returns void