Open Pioneer Trails Packages
    Preparing search index...

    Interface SearchOptions

    Options passed to a SearchSource when triggering a search.

    interface SearchOptions {
        mapProjection: Projection;
        maxResults: number;
        signal: AbortSignal;
    }
    Index

    Properties

    mapProjection: Projection

    The current projection of the map. Useful to return the search result's geometry in the suitable projection.

    maxResults: number

    The maximum number of search results requested by the search widget. The widget will not display additional results, should the source provide them.

    This property allows the source to fetch no more results than necessary.

    signal: AbortSignal

    The signal can be used to detect cancellation. The search widget will automatically cancel obsolete requests when new search operations are started.

    You can pass this signal to builtin functions like fetch that automatically support cancellation.