TomTom Maps for JavaScript
    Preparing search index...

    Type Alias BaseMapBuildings3DConfig

    How the base map's 3D buildings look while hovered or clicked.

    A building takes the event state while a handler of BaseMapModule.events reaches it, such as one scoped to the buildings3D layer group. The click state stays until the next click lands elsewhere.

    const baseMap = await BaseMapModule.get(map, {
    groups: { buildings3D: { visible: true } },
    buildings3D: { hover: { color: '#f3a712' }, click: { color: '#e4572e', intensity: 0.8 } },
    });
    baseMap.events
    .where({ layerGroups: { show: 'only', values: ['buildings3D'] } })
    .on('click', (building) => console.log(building.id, building.properties));
    type BaseMapBuildings3DConfig = {
        click?: BaseMapBuildingStateLook;
        hover?: BaseMapBuildingStateLook;
    }
    Index

    The clicked building. Its intensity is 0.7 when unset.

    The hovered building. Its intensity is 0.35 when unset.