@watergis/maplibre-gl-terradraw
    Preparing search index...

    Function calcArea

    • Calculate area from polygon feature

      Parameters

      • feature: GeoJSONStoreFeatures

        Polygon GeoJSON feature

      • areaUnit: AreaUnit

        Area unit

      • areaPrecision: number

        Precision of area value

      Returns GeoJSONStoreFeatures

      The returning feature will contain area,unit properties.