• JMap.Map.setDistanceUnit

    Set the distance unit, for the current project.

    Save this preference in local storage.

    Parameters

    Returns void

    Throws

    if bad distance unit is provided, or no project is loaded

    Example

    // Set the distance unit to "miles"
    JMap.Map.setDistanceUnit("miles")