• JMap.Map.getDistanceUnit

    Get the map defined distance unit.

    If no distance unit has been set by user, it returns the project distance unit, if no distance unit is set on the project, it returns "meters" by default.

    Returns JMAP_DISTANCE_UNITS

    Throws

    if no project is loaded

    Example

    // returns undefined if no distance unit, else the value
    JMap.Map.getDistanceUnit()