Skip to main content

Search Box

Public beta for Mapbox Search JS

Mapbox Search JS is in public beta. During the public beta phase, frameworks may be subject to potential changes as they stabilize.

Mapbox Search JS offers single-box search, which allows you to search by either place name, address, or category.


MapboxSearchBox, also available as the element <mapbox-search-box>, is an element that lets you search for places, addresses, and landmarks using the Mapbox Search Box API.

It can control a Mapbox GL JS map to zoom to the selected result.

Additionally, MapboxSearchBox implements the IControl interface.

To use this element, you must have a Mapbox access token.

new MapboxSearchBox()


const search = new MapboxSearchBox();
search.accessToken = '<your access token here>';
access-token="<your access token here>"

Instance Members

Map settings


Map binding


Was this section on MapboxSearchBox helpful?
Was this page helpful?