Open Pioneer Trails Packages
    Preparing search index...

    Interface SelectionOptions

    Options passed to a SelectionSource when triggering a select.

    interface SelectionOptions {
        map: MapModel;
        mapProjection: Projection;
        maxResults: number;
        signal: AbortSignal;
    }
    Index

    The map model of the map associated with the selection.

    mapProjection: Projection

    The current projection of the map. Useful to return the selection result's geometry in the suitable projection, should they differ.

    maxResults: number

    The maximum number of selection results to request. The selection component currently only supports a certain amount of results (indicated by this value). If a source results more than maxResults results, additional results will be ignored.

    signal: AbortSignal

    The signal can be used to detect cancellation.

    The signal is aborted when the results of this selection are no longer needed, for example because the user started another selection in the meantime or because the selection widget has been destroyed.

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