@watergis/maplibre-gl-terradraw

    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.

    MMNEPVFCICPMFPCPTTAAATR