This class will help you to transform any input into search bar for geocoding.
Close the result list.
Clear created DOM elements and listeners. This could be usefull when you recreate a JawgPlace object for the same input.
The value of the
Search a random text or lat/lon using Jawg Places.
All features are points with properties, more details on our documentation.
See JawgPlacesOptions.reverse for lat/lon search.
The text to search using Jawg Places
A promise with the feature collection received from Jawg Places
The new value for the
Open the result list with the error message. This will trigger JawgPlacesOptions.onError.
The error to show, can be a string or an object.
Submit the search using the value of the
<input>. This will trigger JawgPlacesOptions.onFeatures.
Generated using TypeDoc