Class: Function service:search.createLocationSearchBloodhound

ngeo.search.createLocationSearchBloodhound.Function

new Function()

Provides a function that creates a Bloodhound engine for the GeoAdmin Location Search API, which creates ol.Feature objects as suggestions.

See: http://api3.geo.admin.ch/services/sdiservices.html#search

Example:

let bloodhound = ngeoCreateLocationSearchBloodhound({
  targetProjection: ol.proj.get('EPSG:3857'),
  limit: 10
});
bloodhound.initialize();