QueryTask

This device does not support 3D.

View the system requirements for more information.

This sample uses QueryTask to query a hosted feature service from ArcGIS Online based on attributes of features in the service.

Open the sample and use the drop down menus to create a query statement to view a selection of prominent peaks in the U.S. The QueryTask queries a feature service containing the 50 most prominent peaks in the U.S.

Once a query expression is set, click Do Query to see the results displayed on the map in a GraphicsLayer.

Sample search results

TitleSample

There were no match results from your search criteria.