The Search widget enables you to find locations in the scene. Unlike the Search widget in a 2D app, it does not support feature search. By default, the widget uses the geocoding service from your organization or portal. You can also add more geocoding services.
Configure the Search widget
The widget configuration window allows you to specify the geocoding services you want the widget to work with.
- Hover over the Search widget and click the Show or hide button to show or hide this widget in your app.
- Hover over the widget and click the Configure this widget button to open the configuration properties dialog box.
- By default, the widget uses the geocoding service from your organization or portal. If you want to add more geocoding services, click Add Search Source and choose Geocoder.
- Click Set to open the Set Geocoder URL window.
- Provide a valid URL for the geocoding service you want to use, click Validate to load the service, choose the service, and click OK.
The geocoder URL is automatically added to the Geocoder URL text box. You can change the geocoder name in the Geocode Name text box.
- Optionally type text in the Placeholder Text text box.
- Optionally type the country code to limit the search area if available. See Geocode coverage for a country code list.
- Change the maximum number of suggestions returned if necessary.
The default is 6.
- Change the maximum number of results returned if necessary.
The default is 6.
- Change the zoom scale if necessary.
- Optionally check the Only search in current map extent.
- Under General Settings, set the placeholder text for geocoders.
- By default, a pop-up appears when the location is found on the scene. Uncheck the box if you don't want a pop-up to appear.
- Click OK to close the configuration window.
Use the Search widget
When you type a place-name in the search box, suggestions appear as you type. If an arrow appears in the search box, you can search on all sources, or click the arrow and choose a locator from the drop-down list.
A pop-up appears at the location of the place-name and displays any available attribute information.