map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface ResultItem

    A single result item, for example describing a feature.

    interface ResultItem {
        id: string | number;
        label: string;
        select(): ResultSelectionHandle;
    }
    Index

    Properties

    Methods

    Properties

    id: string | number

    Unique id of this item within its group.

    label: string

    Item label for display purposes.

    Methods

    • Invoke actions associated with the item. For example, zooming to a feature or opening a popup.

      This function returns a handle object with a remove() function that will clear side effects made by the selection, if applicable (e.g. highlights).

      Note that selections may also be removed automatically (e.g. when a new selection is made).

      To select multiple items at once, see ResultGroup.select.

      Returns ResultSelectionHandle