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

    Function polylabels

    • Polylabels

      Find the labels for a collection of vector polygons

      import { polylabels } from 'gis-tools-ts'
      import type { VectorMultiPolygon } from 'gis-tools-ts'

      const vectorGeometry: VectorMultiPolygon = [];
      const polylabelHighPrecision = polylabels(vectorGeometry, 1);

      Parameters

      • polygons: VectorMultiPolygon

        A collection of vector polygons to find the labels for

      • precision: number = 1.0

        the precision of the label [default: 1.0]

      Returns VectorPoint<PolyLabelMetadata>[]

      • the labels