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

    Function simplify

    • Simplifies the vector geometry based on zoom level and tolerance. If the geometry is simplified past it being valid, set the coordinates to an empty array.

      Type Parameters

      • M extends Properties = Properties

      Parameters

      • geometry: VectorGeometry<M>

        input vector geometry

      • tolerance: number

        simplification tolerance

      • zoom: number

        curent zoom

      • maxzoom: number = 16

        max zoom level

      Returns void