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

  • Optional bloodhoundOptions?: Bloodhound.BloodhoundOptions<GeoJSON.FeatureCollection>

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

  • Optional datasetTitle?: string
  • Optional groupActions?: SearchAction[]

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

  • Optional groupValues?: 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.

  • Optional projection?: string

    The geometry's projection for this set of data.

  • Optional typeaheadDatasetOptions?: Twitter.Typeahead.Dataset<OlFeature<OlGeomGeometry>>

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

  • Optional url?: string

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

Generated using TypeDoc