Search Widget

Explore in the sandboxView live

This sample demonstrates how to add the search widget to a SceneView. The search widget provides a simple interface for searching features in FeatureLayers or geocoding locations with a Locator. Search allows you to enable suggestions as you type in the search box. When the search button is clicked, the search executes and the view uses goTo() to zoom to the top result. By default, the Search widget sets the view on the Search result. The level of detail (LOD) at the center of the view depends on the data source, with higher quality data sources returning extents closer to the feature obtained from the search.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.