• JMap.Application.Measure.deleteAllPolygons

    Deletes all measures having type === "polygon".

    Returns deleted measure count.

    Returns number

    Example

    // delete all polygon measures (if exist)
    const deletedMeasuresCount = JMap.Application.Measure.deleteAllPolygons()