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

    Type Alias PlaceConnectionsConfig

    Configuration for rendering connection lines between places.

    Controls the appearance of connection lines, the optional label drawn along each line, and MapLibre layer overrides.

    const config: PlacesModuleConfig = {
    connections: {
    label: { title: (connection) => `${connection.distanceMeters} m` },
    layers: {
    line: { paint: { 'line-color': '#3f9cd9' } }
    }
    }
    };
    type PlaceConnectionsConfig = {
        color?: string;
        label?: PlaceConnectionLabelConfig;
        layers?: PlaceConnectionsLayersConfig;
    }
    Index
    color?: string

    Colour of the connection lines, over the module's PlacesModuleConfig.color. Unset, they take that colour, else the map's accent, else a blue that follows the light/dark theme.

    The labels along the connection lines: their text and colours.

    Custom MapLibre layer specifications for connection line and label.