Interface for GazetteerSource instances.
Methods
search(query) → {Promise.<Array.<module:ol-ishare/ui/gazetteer~GazetteerResult>>}
Search for results based on the provided query string, returns a Promise which will resolve to
an Array of module:ol-ishare/ui/gazetteer~GazetteerResult
objects or an error
Parameters:
Name | Type | Description |
---|---|---|
query |
string | String to search for |
Returns:
Promise that resolves to an Array of GazetteerResult objects or an Error