To see information about features in a layer, you can display an interactive table at the bottom of the map in Map Viewer or on the Data tab of the feature layer's item page. Seeing a tabular view of the data can be a quick way to analyze information and start making decisions. You can sort, resize, reorder, and hide data, as well as select specific attributes to see on the map. For example, you could show a table for a crimes layer and see the different types of crime that your district responded to over the last two years.
You can view and sort the attribute data displayed in the table to help you better understand your feature layer. You can also get more information about the layer by viewing any available related data tables, as well as any related photos or other file attachments. If you have privileges to edit the layer, you can edit or delete attribute values and attach additional related photos and files.
Showing tables can be a useful way to see which features will display in your map. If the layer contains features that aren't important to your audience, you can set up a more focused display of the layer by applying filters.
Show a table in Map Viewer
To show a feature layer's attribute table in Map Viewer, do the following:
- Open the map with the feature layer whose attributes you want to see in a table.
- Click Details and click Contents.
- Browse to the feature layer and click Show Table . The table appears at the bottom of your map.
To resize the table vertically, drag the splitter bar centered above the table title up or down.
- Click Hide Table to close the table view in the map.
Show a table on the item page
To show a table on the item page of a feature layer, do the following:
- Go to the item page of the feature layer whose attributes you want to see in a table.
- Click the Data tab.
Edit attributes and related records
If a feature layer is editable, its attribute table is always editable. If you have privileges to edit the layer, you can edit or delete the attributes in the layer's attribute table and in any related tables. Owners and administrators of a layer manage how others can edit the layer and its attributes. If the layer is editable, data curators and members of shared access groups can edit or delete attributes.
If the layer has related records, those attributes can also be edited by users with the correct privileges. You will see these related records represented as columns with italicized headers on the right side of the table.
Do any of the following to edit attributes and related records:
- To make it easier to edit attribute data, sort
the attributes by clicking the column header and
Sort Ascending or
Web services from some older versions of ArcGIS Server do not support sorting.
- To hide or show attribute fields, click the Options button and click Show/Hide Columns. Check boxes to show attribute columns. Uncheck boxes to hide them.
- To rearrange the columns, click the More Options button under the layer in the Contents pane, click Configure Pop-up, and click Configure Attributes. Select the field names of the columns you want to rearrange and use the Move up and Move down arrows to change the order of the columns. Columns listed from top to bottom correspond to their display from left to right in the table. Click OK twice to apply your changes.
Rearranging columns is only supported in Map Viewer.
- To edit an attribute in the table, select the value in the cell, type a new value (or remove the value to delete it), and press Enter to save your changes.
- To view related records, click Show in the cell in the related table column corresponding to the record for which you want to view related records. For example, if a parcels layer has a related table of owners and you want to see all the owners of a parcel, click Show in the appropriate cell of the Owners column to see a list of owners for the selected parcel. From there, you can explore other records in the table—for example, select any other parcel ID to see the owners of that parcel. If the related table has related records of its own, you can examine those as well—for example, if the Owners table has a related table of other properties owned by a parcel owner, click Show to see those property records.
- When viewing or editing a related table, click the Close button (X) at any time to return to the previous table.
- To hide or show related table columns, click the Options button and click Show/Hide Columns. Check boxes to show the columns. Uncheck boxes to hide them.
View and add related photos and files
Feature layers can include related photos or other files as attachments, which can be viewed from the attribute table. If you have privileges to edit the layer, you can attach additional related photos and files.
Do any of the following to view or add related photos and files:
- If the layer has related photos or files, view them by clicking Show in the appropriate cell of the Photos and Files column on the right of the table. To add an attachment, click Add and upload the photo or file you want to attach.
- To hide or show related photos and files columns, click the Options button and click Show/Hide Columns. Check boxes to show columns. Uncheck boxes to hide them.
Work with fields
As the owner or administrator of a hosted feature layer, you can add, calculate, and delete fields in the table as follows:
- To add a field, click the Options button and click Add Field. For details, see Work with fields.
- To calculate a field, click the column containing the field with the value you want to calculate and click Calculate. For details, see Work with fields.
- To delete a field, click the column containing the field you want to delete and click Delete.
Select and zoom to features
In Map Viewer, you can use a feature layer's attribute table to select and zoom to features on the map. To accomplish this, do any of the following:
- To zoom to a feature on the map, click a record (row) in the table, click the Options button , and click Center on Selection.
- To select multiple features on the map, hold down the Shift key and select multiple records or a range of records. Hold down the Ctrl key to select two or more nonadjacent records.
- To clear a selection, click the Options button and click Clear Selection. This option is useful to clear all selected records.
- To create a query expression that filters what feature data appears in the map and table, browse to the feature layer with the existing filter in the Contents pane and click Filter .
- To select the visible rasters in an imagery layer in your current area of interest and at the current pixel size, click the Options button and click Select Visible Rasters.
- To display selected rasters in an imagery layer, click the Options button , select one or more rows of rasters, and click Display Selected Rasters.
- To display all rasters in an imagery layer, click the Options button , select one or more rows of rasters, click Display Selected Rasters, and click Display All Rasters. (After you select Display Selected Rasters, the button name changes to Display All Rasters.)
Considerations for working with tables
- You can use a table to view these types of layers: feature and map services from an ArcGIS Server 10 SP1 or later site, hosted feature layers, hosted tile layers with associated attribute data, shapefiles, GPX files, and CSV (files and web).
- Selecting and zooming to features is not supported in tables displayed on the Data tab of the item page.
- In Map Viewer, tables display the same attribute fields and formatting that are configured in pop-ups. You can change a field name by editing the field alias in the Configure Attributes window of Pop-up Properties. If you make updates to the pop-up configuration while the table is open, you'll need to hide and show the table to see the updates.
- In Map Viewer, if you select a single record to zoom to, the map zooms to the extent of the feature if the feature is a line or polygon. If the feature is a point, the map pans to the feature and, if necessary, zooms to a scale where the feature is visible.
- In Map Viewer, if you select multiple records to zoom to, the map zooms to the extent of all the features. You may not see all the features if the extent of all the selected features is outside the visible scale range of the layer.
- In Map Viewer, if you've selected a record in the table and open a pop-up in the map, you'll clear the selection in the table.
- In Map Viewer, if the layer is hidden in the map, you cannot zoom to a selection.
- The attribute table for layers in a time-enabled map will always show all records, not just those that the map is showing on the screen at a given time.