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

    Type Alias BaseMapEventScope

    The scope baseMap.events.where(...) accepts, in addition to a plain feature predicate.

    layerGroups narrows to part of the map, like road labels, water or buildings, using the same BaseMapLayerGroupName vocabulary as setVisible. features narrows within those layers, and the two combine.

    baseMap.events
    .where({ layerGroups: { show: 'only', values: ['roadLabels', 'roadShields'] } },
    { cursorOnHover: 'pointer' })
    .on('click', (feature) => showRoadName(feature.properties.name));
    type BaseMapEventScope = {
        features?: (feature: MapGeoJSONFeature) => boolean;
        layerGroups: BaseMapLayerGroups;
    }
    Index
    features?: (feature: MapGeoJSONFeature) => boolean

    A further narrowing to particular features within those layers.

    layerGroups: BaseMapLayerGroups

    Which layer groups this scope covers.