@vcmap/core
    Preparing search index...

    Class FeatureVisibility

    FeatureVisibility handles the visibility and highlighting of features of a specific FeatureLayer or DataSourceLayer and its FeatureLayerImplementation resp. DataSourceCesiumImpl. The visibility is being synchronized with the GlobalHider.

    Index

    Constructors

    Methods

    • hides a number of objects

      Parameters

      • toHide: (string | number)[]

        A list of Object Ids which will be hidden

      Returns void

    • highlights a number of features by ID (import("@vcmap-cesium/engine").Cesium3DTileFeature|ol/Feature) with the given color.

      Parameters

      • toHighlight: Record<string, HighlightStyleType>

      Returns void

    • unHides a number of objects

      Parameters

      • unHide: (string | number)[]

        A list of Object Ids which will be unHidden

      Returns void

    • unhighlights a number of features given by the ID (import("@vcmap-cesium/engine").Cesium3DTileFeature|import("ol").Feature<import("ol/geom/Geometry").default>)

      Parameters

      • toUnHighlight: (string | number)[]

        Array with IDS to unhighlight

      Returns void

    Properties

    An event raised when the hidden or highlighted ids change. Is called with FeatureVisibilityEvent as its only argument

    hiddenObjects: Record<string, Set<HighlightableFeature>> = {}
    highlightedObjects: Record<string, HighlightedObject> = {}
    lastUpdated: number = ...