Query

This sample uses query 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 United States. The query 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.

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

The developer dashboard has moved

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close