TomTom Maps for JavaScript
    Preparing search index...

    Type Alias BaseMapEventScope

    Scope accepted by baseMap.events.where(...), in addition to a plain feature predicate.

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

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

    Optional further narrowing to particular features within those layers.

    layerGroups: BaseMapLayerGroups

    Which layer groups this scope covers.