geoview-core
    Preparing search index...

    Class FeatureHighlight

    A class to handle highlighting of features

    FeatureHighlight

    Index

    Constructors

    Properties

    highlightSource: VectorSource = ...

    The vector source to use for the highlight features

    mapViewer: MapViewer

    Reference on the map viewer

    overlayLayer?: VectorLayer<VectorSource<any>, any>

    The hidden layer to display highlight.

    pointMarkers?: PointMarkers

    Methods

    • Changes the highlight color

      Parameters

      • color: TypeHighlightColors

        New color

      Returns void

    • Highlights a feature with a plain overlay

      Parameters

      • feature: TypeFeatureInfoEntry

        Feature to highlight

      Returns void

    • Highlights a bounding box

      Parameters

      • extent: Extent

        Extent to highlight

      • isLayerHighlight: boolean = false

        Optional if it is a layer highlight

      Returns void

    • Initializes the FeatureHighlight with the MapViewer, now that the map is accessible inside the MapViewer.

      Returns void

    • Removes bounding box highlight

      Returns void

    • Removes feature highlight(s)

      Parameters

      • id: string

        Uid of the feature to deselect, or 'all' to clear all

      Returns void