Type Alias SearchComponentDatasource

SearchComponentDatasource: {
    bloodhoundOptions?: Bloodhound.BloodhoundOptions<GeoJSON.FeatureCollection>;
    datasetTitle?: string;
    groupActions?: SearchAction[];
    groupValues?: string[];
    labelKey: string;
    projection?: string;
    typeaheadDatasetOptions?: Twitter.Typeahead.Dataset<OlFeature<OlGeomGeometry>>;
    url?: string;
}

Datasource configuration options for the search directive.

Type declaration

  • OptionalbloodhoundOptions?: Bloodhound.BloodhoundOptions<GeoJSON.FeatureCollection>

    The optional Bloodhound configuration for this data set. See: https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md

  • OptionaldatasetTitle?: string
  • OptionalgroupActions?: SearchAction[]

    List of allowed actions. The list may contain a combination of add_theme, add_group or add_layer

  • OptionalgroupValues?: string[]

    Possible values for the 'layer_name' key. Used to define groups of dataset.

  • labelKey: string

    The name of a corresponding GeoJSON property key in the current dataset. The bound value of this property key will be used as label.

  • Optionalprojection?: string

    The geometry's projection for this set of data.

  • OptionaltypeaheadDatasetOptions?: Twitter.Typeahead.Dataset<OlFeature<OlGeomGeometry>>

    The optional Twitter.Typeahead. configuration for this dataset. See: https://github.com/twitter/typeahead.js/blob/master/

  • Optionalurl?: string

    URL of the search service. Must contain a '%QUERY' term that will be replaced by the input string.