You are using a browser that is no longer supported. Please use the latest version of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. For more information please see the System Requirements.
Skip To ContentArcGIS for DevelopersSign In Dashboard
Loading...

Note: Support for 3D on mobile devices may vary, 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
Loading...