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.