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

    Function polylabel

    • Polylabel

      Find the label for a vector polygon

      import { polylabel } from 'gis-tools-ts'
      import type { VectorPolygon } from 'gis-tools-ts'

      const vectorGeometry: VectorPolygon = [];
      const polylabelHighPrecision = polylabel(vectorGeometry, 1);

      Parameters

      • polygon: VectorPolygon

        the vector polygon to find the label for

      • precision: number = 1.0

        the precision of the label [default: 1.0]

      Returns VectorPoint<PolyLabelMetadata>

      • the label