You will learn: how to view features with ArcGIS Online, the Map and Scene Viewers, and the REST API.
ArcGIS Online includes a powerful set of tools for managing and exploring layer data. The most common way to store tabular data with geographic information is to create a hosted feature layer. These layers contain records that have both attribute and geometry information. In the ArcGIS platform, these are known as features. One of the main tools that you can use to access and manage layer data is the item details page. This page allows you to edit data and view features in a table view or in a map view. The Map Viewer and Scene Viewer are also powerful tools for exploring and managing layer data. They offer even more options for viewing, visualizing, and editing features. Lastly, if you want to view the raw data itself, since all hosted feature layers are services, you can always access the ArcGIS REST API directly to view features in a web browser.
In this lab you will use ArcGIS tools to explore layer data. Understanding the structure and definition of your data is an important first step to building applications successfully with the ArcGIS APIs.
All hosted feature layers in ArcGIS Online have an associated item details page. Let's use this page to explore the layer data and visualization properties.
Go to the Trailheads layer item in ArcGIS Online.
Click Data to view a table of features.
Click Visualization to view the geometry and symbols for features.
Another way to access data is to open the layer in the Map Viewer. This application gives you even more tools to select, edit and visualize data.
In the item details page, click Overview.
Click Open in Map Viewer.
Click features in the map to explore the fields and values in the pop-up.
In Contents, click Trailheads > Show Table.
In Contents click Trailheads > Change Style, Filter, Configure Popup and Label to change the visualization properties.
Optional: Save your map.
Another way to access data is to open the layer in the Scene Viewer. The Scene Viewer allows you to view and interact with data in 3D.
Go back to the item detail pages below:
Click Open in Scene Viewer in each page.
Zoom in, rotate and tilt the map.
Click features to explore the fields and values.
Optional: Save your scene.
Load your data into the cloud (xls, gpx, GeoJSON, shapefiles).
Define and populate datasets in the cloud for your apps.
Set the default properties for layers.
Explore layers and maps from a variety of sources.
Keep your layers private, or share them publicly.
Use the Map Viewer to find layers and create a new web map.
Use the Map Viewer to style layers and create meaningful visualizations.
Use the Scene Viewer to find layers and create a new web scene.
All hosted feature layers have a REST endpoint that you can use to access the data directly. This can be accomplished with a URL request from a web browser, a custom application, or the ArcGIS APIs.
Let's use a web browser to access the raw data.
Go back to the Trailheads layer item details page.
Under Layers > Trails click Service URL. This will bring up the metadata page for the layer.
In your browser, add the following query parameters to the URL (or just copy/paste from below) and then refresh to fetch the features:
|TRL_NAME:||Pipe Corral Spur Trail|
|PARK_NAME:||CA State Parks - Topanga|
|X:||118° 31' 10.961" W|
|Y:||34° 4' 45.626" N|
To learn more about querying data with the REST API, see the Query a feature layer lab.