TomTom Maps for JavaScript
    Preparing search index...

    Type Alias PlaceConnectionsConfig

    The connection lines drawn between places.

    It sets their look, the optional label 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

    The colour of the connection lines, overriding the module's PlacesModuleConfig.color. By default, they take that colour, otherwise the map's accent, otherwise 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.