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

    Type Alias Landmarks3DConfig

    Landmarks3DConfig: KnobConfigOf<
        { [ID in Landmarks3DKnobId]: Landmarks3DKnobValueOf<ID> },
    >

    The landmark knobs an app sets, as Landmarks3D.getConfig returns them. Each knob id is its path in here, and it's plain JSON.

    • color, opacity, verticalGradient, minZoom and maxZoom follow the base map's 3D buildings while unset, and hover.color and click.color the map's accent, else blue.
    • While a Buildings3D draws, the landmarks follow its buildings instead: texture is detail, there's no wall gradient, which verticalGradient can't turn on, and every zoom up to maxZoom. Their palette and variation are the walls' ones, the palette only while color is unset.
    • On streetSatellite, texture is color while unset, with or without a Buildings3D: the landmarks show their own colours over the imagery.
    const config: Landmarks3DConfig = { color: '#c8b28a', opacity: 0.9 };
    const authored: Landmarks3DConfig = { texture: 'color' }; // the landmarks' own colours
    const varied: Landmarks3DConfig = { palette: ['#efe4cf', '#cdb07f', '#b96c48'], variation: 0.3 };