geoview-core - v2.3.0
    Preparing search index...

    Class FeatureHighlight

    A class to handle highlighting of features.

    Index
    highlightSource: VectorSource = ...

    The vector source to use for the highlight features

    mapController: MapController

    Reference on the map controller

    mapViewer: MapViewer

    Reference on the map viewer

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

    The hidden layer to display highlight.

    pointMarkers?: PointMarkers
    • Highlights a feature with a plain overlay.

      Pathologically complex geometries (e.g. an ESRI feature whose polygon has thousands of holes) are not highlighted, because re-rendering them every frame freezes the UI. The user is notified once per such feature.

      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