This is the documentation of version 0.64.0. Go to the latest version, 1.0.0.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias PlaceConnectionLabelConfig

    The labels PlacesModule draws along its connection lines.

    type PlaceConnectionLabelConfig = {
        color?: string;
        haloColor?: string;
        title?: (connection: PlaceConnectionDisplay) => string;
    }
    Index
    color?: string

    Colour of the labels. Unset: a darker shade of the line colour on a light map, a lighter one on a dark map.

    haloColor?: string

    Colour of the halo around the labels. Unset: '#FFFFFF' on a light map, '#333333' on a dark one, as for the places' own labels.

    title?: (connection: PlaceConnectionDisplay) => string

    The text along a connection line.

    Receives the original PlaceConnectionDisplay (including any custom metadata). When omitted, no label is rendered.