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

    Type Alias BaseMapLayerGroups

    BaseMapLayerGroups: ValuesFilter<BaseMapLayerGroupName>

    The base map layer groups a call reaches, using the ValuesFilter that POIs and traffic filter by.

    • show: 'only': the values groups.
    • show: 'all-except': every layer outside the values groups, which BaseMapModule.setVisible leaves as they were.
    // Show only roads and borders
    const roadsOnly: BaseMapLayerGroups = { show: 'only', values: ['roads', 'roadLabels', 'borders'] };

    // Show everything except buildings
    const noBuildings: BaseMapLayerGroups = { show: 'all-except', values: ['buildings2D', 'buildings3D'] };