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

    Function centerOfPoints

    • Find the center of a collection of Vector points

      Type Parameters

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

      Parameters

      • vectorPoints:
            | VectorMultiPointGeometry<D>
            | VectorFeature<M, D, P, VectorMultiPointGeometry<D>>
            | VectorPoint<D>[]

        collection of Vector points, whether from a VectorFeature, geometry, or raw coordinates

      Returns VectorPoint

      • the center of the vector points