gis-tools-ts - v0.6.0
    Preparing search index...

    Class Layer<M, D, P>

    Layer Class to contain the layer information for splitting or simplifying

    Type Parameters

    • M = Record<string, unknown>
    • D extends MValue = Properties
    • P extends Properties = Properties
    Index

    Constructors

    Properties

    Accessors

    Constructors

    • Type Parameters

      • M = Record<string, unknown>
      • D extends Properties = Properties
      • P extends Properties = Properties

      Parameters

      • name: string

        the layer name

      • features: VectorFeatures<M, D, P>[] = []

        the layer's features

      Returns Layer<M, D, P>

    Properties

    features: VectorFeatures<M, D, P>[] = []

    the layer's features

    name: string

    the layer name

    Accessors

    • get length(): number

      Returns number

      The number of features in the layer