• JMap.Geometry.convertArea

    Converts the area from a unit to another.

    Parameters

    Returns number

    Throws

    if invalid parameters

    Example

    // returns 2 square kilometers in square miles
    JMap.Geometry.convertArea(2, "miles")

    // returns 200 square meters in square yards
    JMap.Geometry.convertArea(200, "yards", "meters")