Open Pioneer Trails Packages
    Preparing search index...

    Interface OgcFeatureSearchSourceOptions

    Options for ().

    interface OgcFeatureSearchSourceOptions {
        baseUrl: string;
        collectionId: string;
        label: string;
        labelProperty?: string;
        renderLabel?: (feature: FeatureResponse) => undefined | string;
        rewriteUrl?: (url: URL) => undefined | URL;
        searchProperty: string;
    }
    Index

    Properties

    baseUrl: string

    The URL to the service, not including the "/collections"-part.

    Query arguments here are also used for individual requests by default, for example:

    new OgcFeatureSearchSource({
    // token is also used for all requests made by this class
    baseUrl: `https://example.com/ogc-service?token=...`
    })
    collectionId: string

    The ID of the collection.

    label: string

    The source's label. May be used as a title for results from this source.

    labelProperty?: string

    Property used for labelling.

    Defaults to searchProperty.

    This property can be useful if searchProperty is not returned by the service, or if another field shall be displayed instead.

    renderLabel?: (feature: FeatureResponse) => undefined | string

    Function to create custom a label for a given feature.

    If the label is not customized by this function, labelProperty (or searchProperty) will be used instead.

    rewriteUrl?: (url: URL) => undefined | URL

    Rewrite function to modify the original URL.

    NOTE: Do not update the url argument. Return a new URL instance instead.

    searchProperty: string

    Property used for filtering on OGC API Features.