@geogirafe/lib-geoportal
    Preparing search index...

    A search provider for the GeoMapFish backend. Extends the AbstractSearchClient and provides methods tailored to processing GMF-specific search results.

    Configuration:

    • providerName: The name of the search provider, or geomapfish.
    • url: The URL of the GMF search service.
    • resultSrid: The spatial reference system (SRID) of the search results. Default same as map SRID.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    geoJsonFormatter: GeoJSON<Feature<Geometry, { [x: string]: any }>> = ...
    providerName: string
    resultSrid: string
    searchLangPlaceholder: "###SEARCHLANG###" = '###SEARCHLANG###'
    searchTermPlaceholder: "###SEARCHTERM###" = '###SEARCHTERM###'
    type: string
    url: URL

    Accessors

    Methods

    • Groups results by the default group, which equivalates to no grouping. Should be overridden by the client class to group results by a custom criteria.

      Parameters

      • results: Feature<Geometry, { [x: string]: any }>[]

      Returns Record<string, Feature[]>

    • Parses the response from the server and returns an array of features. Features must have the following properties to be used correctly with the search component:

      • provider
      • label
      • label_html: optional, for styled entries in the search results list
      • actions: optional, a list of SearchResultsActions

      Parameters

      • response: Response

      Returns Promise<Feature<Geometry, { [x: string]: any }>[]>