Search JS Web is the main entry-point to Mapbox Search JS, and provides rich UI components on top of Search JS Core.
This documentation is divided into several sections:
- Address Autofill. The
autofillfunction will attach address autofill suggestions to any
<input>elements with the proper
autocompleteattributes. This behavior can be controlled manually with the
MapboxAddressAutofillcustom element or by responding to proper events.
- Search Box. The
MapboxSearchBoxcustom element lets you search for places, addresses, and landmarks. It can also provide navigation estimates and control a Mapbox GL JS map.
- Address minimap. The
MapboxAddressMinimapcustom element lets users confirm a physical location on a map, reducing delivery errors in both shipping and local dispatching contexts.
- Theming. This section describes the Control Theme API reference, which allows you to fully customize Search JS Web elements to match your design system.
- Properties and options. This section describes option and property types shared by multiple web components.
- Events and event types. This section describes the different types of events that Search JS Web can raise.
- Configuration. This section describes shared settings across Search JS Web components.
Each section describes classes or objects as well as their properties, parameters, instance members, and associated events. Many sections also include inline code examples and related resources.