Search Bar Example
A demo for the Search API to add a search bar to a map.
Select Country
HTML Code
The below example uses the Search API, and some functions from the Slpy JS library, to power a search bar and fly to its results.
Also available from NPM with npm install slpy
. See the Slpy JS Github for more info.
Next Steps
Enhance your search with Maps or Autocomplete
- Add a search bar to your map.
- Translate addresses to coordinates
- Search for points of interest.
- Display your location
- Provide context to an address
- Add popups for more information