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.

Unsupported browser

You are using a browser that is not supported. JavaScript API works on the latest versions of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. Use one of these browsers and provide your feedback through GeoNet, the Esri Community.

  • {i18n.unsupportedBrowser.chrome}
  • Firefox
  • Safari
  • undefined
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...