• JMap.Project.getMapUnit

    Returns the project map unit.

    Returns JMAP_DISTANCE_UNITS

    Throws

    if no project is loaded

    Example

    // return "meters", or "kilometers", or "miles", or "yards"...
    JMap.Project.getMapUnit()