Add a search box with MapTiler SDK JS

This page shows how to add the Geocoding control (search box) to your map using MapTiler SDK JS. We also have tutorials for popular JS frameworks:

Alternatively, you can implement the Geocoding control with other map libraries.

Before you start

No matter which library or framework you’re going to use, you’ll need a MapTiler API key to make the control work. 👉 What’s an API key and where to get it

If you prefer detailed instructions, see the step-by-step tutorial.

Configuration

The code on this page helps you build a map with a default search box. To configure the search, see these code examples and tutorials:

Other libraries

See code examples of how to use the Geocoding control with different map libraries and Javascript frameworks: