Adds the control to the given map.
from Leaflet
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
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.
This class will help you to add or use search bar for geocoding with a Leaflet map.