This is the documentation of version 1.0.0-rc.1. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias DistanceDisplayUnits

    The labels and unit system the SDK uses to display distances.

    The unit system is metric or imperial.

    type DistanceDisplayUnits = {
        feet?: string;
        kilometers?: string;
        meters?: string;
        miles?: string;
        type?: DistanceUnitsType;
        yards?: string;
    }
    Index
    feet?: string

    The label for feet.

    "ft"
    
    kilometers?: string

    The label for kilometers.

    "km"
    
    meters?: string

    The label for meters.

    "m"
    
    miles?: string

    The label for miles.

    "mi"
    

    The unit system.

    It is either metric (meters, kilometers) or imperial (feet, miles, yards).

    yards?: string

    The label for yards.

    "yd"