The Open Vector Layer class represents a layer in an Open Vector Tile. Contains an extent, name, version, and features. The features will utilize the layer extent to decode geometry.

Constructors

Accessors

Methods

Constructors

  • Parameters

    • pbf: Pbf

      the pbf protocol we are reading from

    • end: number

      the position to stop at

    • cache: ColumnCacheReader

      the cache where all data is stored in a column format

    Returns OVectorLayer

Accessors

  • get length(): number
  • Returns number

    • The number of features in the layer
  • get mShape(): undefined | Shape
  • Returns undefined | Shape

    • The shape of the M-Values
  • get shape(): Shape
  • Returns Shape

    • The shape of the features properties

Methods

  • should return OVectorFeature which is a type combining all 6 feature types

    Parameters

    • i: number

      The index of the feature

    Returns OVectorFeature

    • A feature at the given index