• JMap.Project.getDefaultDistanceUnit

    Returns the project distance unit, or "meters" if no distance unit is set on the project.

    Returns JMAP_DISTANCE_UNITS

    Throws

    if no project is loaded

    Example

    // returns "meters", or "kilometers", or "miles", or "yards"...
    JMap.Project.getDefaultDistanceUnit()