Access feature layer data

Learn how to use ArcGIS Online tools to access and display feature layer data.

You can use ArcGIS Online tools to access and display data in a hosted feature layer. These tools are helpful if you want to see where features are located or if you want to explore feature attribute values. Some tools also give you the ability to add, update, and delete features. If you just want to explore the raw data, you can access it directly with a URL.

In this tutorial, you use the Trails item page to access and display data with ArcGIS Online, Map Viewer, and Scene Viewer. You also use the layer URL to view the raw data in a web browser.

Prerequisites

You need an ArcGIS account to access your dashboard and manage hosted layers. Sign up for an account for free.

Steps

View data in an item page

You can browse the data in a hosted feature layer by accessing its item page. This page also allows you to access other client applications such as Map Viewer that can be used to view the data.

  1. Go to the item page for the Trails feature layer.

  2. In the Overview item page in ArcGIS Online, note the following tabs available:

    • Overview: Contains information and links to view the feature layer and metadata.
    • Data : View and edit attributes in a table.
    • Visualization: Access and display feature fields, values, and records.

View data with a web browser

You can use a web browser to access a hosted layer and its data. To do so, you use the URL for the feature layer. This accesses the feature service directly and allows you to use the meta data page to perform queries to view the raw data. Using a URL to access feature layer data is a fast way to test data access for your applications.

  1. In the item page, click the Overview tab > Trails_0 under Layers.

  2. On the right side of the page, click View to access the URL REST endpoint. The endpoint should look like this: https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0

  3. Note the Type and GeometryType of the Trails layer. The type of layer is a feature layer with polyline geometry.

  4. Find Fields and make note of different attributes such as:

    • ObjectID
    • TRL_NAME
    • ELEV_GAIN
  5. At the bottom of the page, click Query.

  6. Set the following properties:

    • Where: 1=1
    • OutFields: *
    • Format: HTML
    • Click Query(GET)
  7. Scroll down the page to view the results.

  8. Change the Format value to GeoJSON and click Query(GET) to view the data in GeoJSON format.

View data in Map Viewer

You can use Map Viewer to access display features in a hosted feature layer. This tool is helpful for viewing the location of the data and exploring the feature attribute values either in a map or a table.

  1. Go back to the item page for the Trails feature layer.

  2. On the right side of the page, locate Open in Map Viewer. Select Open in Map Viewer Beta from the dropdown.

  3. Click on the trails to display pop-ups with attribute information.

  4. On the left panel, locate Trails-Trails 0 under Layers.

  5. Click ... > Show table to display the fields and values of the feature layer.

  6. On the right panel, click Filter. Click Add expression and set: TRL_NAME contains Backbone > Save. The features that do not match the query will be filtered out.

View data in Scene Viewer

You can also view features in Scene Viewer. Scene Viewer allows you to view both 2D and 3D data in a scene.

  1. Go back to the item page for the Trails feature layer.

  2. On the right side of the page, click Open in Scene Viewer. When it opens, you can pan and zoom the map.

You are now able to access and view hosted feature layer data using the tools provided in ArcGIS Online, Map Viewer, and Scene Viewer.

Manage a feature layer

Set the properties and capabilities of a hosted feature layer.

What's next?

Learn how to use additional tools, APIs, and location services in these tutorials:

Tutorials
ToolsAPIs

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