Adds the control to the given map.
from Leaflet
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 current position of the control in the map.
The value of the <input>
.
Search a random text or lat/lon using Jawg Places. All features are points with properties, more details on our documentation.
to search using Jawg Places
promise with the feature collection received from Jawg Places
The new value for the <input>
.
Open the result list with the error message. This will trigger JawgPlacesOptions.onError.
The error to show, can be a string or an object.
Open the result list with elements from the FeatureCollection. We use the properties.label
field of each features.
This will trigger JawgPlacesOptions.onFeatures.
Feature Collection of geocoded points.
Submit the search using the value of the <input>
. This will trigger JawgPlacesOptions.onFeatures.
Generated using TypeDoc
This class will help you to add or use search bar for geocoding with a Leaflet map.