Use layers

Members of your organization add data and publish layers to ArcGIS Online so they can share them.

How and where you use a layer depends on the type of layer and what you need to do with it. The following are examples:

Tip:

To determine whether a layer meets your needs, check the information on the layer's item page. Details such as the layer's description, metadata, and extent can help you decide whether the layer is suitable. For hosted feature layers, additional information about the individual fields in the layer is also available.

Use layers in maps and scenes

You build a map or scene by adding data layers to them and configuring how the layers look and behave in the map or scene. You can add layers you published, layers shared to you by others, and layers from other providers—such as ArcGIS Living Atlas of the World—to the maps and scenes. You can use the options on the Overview tab in a layer's item page to open it in Map Viewer, Map Viewer Classic, or Scene Viewer or you can start in one of those apps and add layers there. See Get started creating maps and Get started with scenes for overviews of the process to create the maps and scenes you and others can use to interact with your layers.

Feature layers can be used in analysis tools—in Map Viewer Classic and ArcGIS Pro—and custom apps to answer spatial questions, discover patterns, and identify trends.

Use layers in apps

Apps are similar to tools, in that many provide focused functionality that allows you to interact with the layers in ArcGIS Online.

You need to choose the app that meets the needs of the app users. Sometimes, you'll add a layer directly to an app, such as ArcGIS Pro, to use the layer as a basemap, provide reference information in your map, or edit or analyze features. In many other cases, you'll create and configure a map or scene containing the layers people need and add that map or scene to an app that provides specific functionality. You can create apps for that purpose, or use out-of-the-box apps such as ArcGIS Dashboards or ArcGIS GeoPlanner.

Edit features and tables

Feature and table layers that are configured to allow editing can be added to a map viewer, where you can edit features or edit attributes in tables.

These editable layers can be edited in ArcGIS Pro or ArcMap. Editable feature and table layers can also be added to maps that you subsequently include in apps.

The owner of the feature layer or an administrator can also configure maps containing editable feature layers for offline use. The feature layers and the maps must be enabled for offline use. You could then load the map containing the editable, offline-enabled layers into an app, such as ArcGIS Field Maps, and collect and edit data while disconnected from the internet.

Export data from hosted feature layers

You can export data from a hosted feature layer if one of the following is true:

  • You own the features.
  • You are an administrator for your ArcGIS Online organization.
  • You aren't the hosted feature layer owner or the administrator, but the owner or administrator has configured the hosted feature layer to allow others to export the data.

    This setting can be changed on the item page Settings tab by checking the Allow others to export to different formats check box under Export Data.

When you export from a hosted feature layer or from a layer within a hosted feature layer, ArcGIS Online creates one of the following items in the root folder of My Content:

  • CSV files—When you export from a point layer, latitude and longitude values for the points are exported to the .csv file. When you export a line or polygon layer, only nonspatial attributes are exported.
  • Microsoft Excel files—When you export from a point layer, latitude and longitude values for the points are exported to the Excel file. When you export a line or polygon layer, only nonspatial attributes are exported.
  • Shapefiles
  • File geodatabases
  • GeoJSON files
  • Feature collections
  • KML files
  • GeoPackage files

Once the item is created, you can download the file.

If the layers in the hosted feature layer contain metadata, the metadata is included if you export to a shapefile or file geodatabase.

When you export from a hosted feature layer view, only the data included in the view definition is included in the exported file.

Follow these steps to export data from a hosted feature layer or hosted feature layer view:

  1. Sign in and open the item page for the features you want to export.
    • If you own the feature layer, click Content > My Content and click the item title. To open the item details for a sublayer in the feature layer, go to the Layers section of the Overview tab and click the name of the sublayer.
    • If you do not own the feature layer, search for the layer, and click the feature layer name in the search results list. To open the item details for a sublayer in the feature layer, go to the Layers section of the Overview tab and click the name of the sublayer.
  2. Click the Export Data button on the Overview tab and choose the format you want to export.

    Tip:

    If the layer you export contains attachments and you want to export the attachments, export to a file geodatabase. When you export the layer to any of the other formats listed below, attachments are not included.

    • Export to Shapefile—Creates a compressed file (.zip file) containing a shapefile for each layer and its associated metadata (if present) that you export. You can download the file and save it to your computer.
    • Export to CSV file—Creates a comma-separated values file when you export from a layer. You can open the file or save it to your computer. If you export all layers to a .csv file, a CSV collection is created, which is a .zip file containing one .csv file per layer. You can download the .zip file and save it to your computer.
    • Export to KML—Creates a KML service you can open in Map Viewer or Map Viewer Classic. When you export all layers to KML, a KML collection is created. This collection is a .zip file containing one KML file per layer.
    • Export to Excel—Creates a Microsoft Excel spreadsheet. You can open the file or save it to your computer. If you export all layers to Excel, each layer will be a separate sheet in the spreadsheet.
    • Export to FGDB—Creates a .zip file containing a file geodatabase. The file geodatabase contains a feature class and its associated metadata and attachments (if present). You can download the .zip file and save it to your computer.
      Note:

      The .zip file uses the name you specify for the hosted feature layer's Title, but the geodatabase name is randomly generated. Each feature class has the same name as the exported sublayers.

    • Export to GeoJSON—Creates a GeoJSON file containing definitions for all layers you export. If you export from an individual layer, only that layer's definition will be present in the GeoJSON file. You can download the file and save it to your computer.
    • Export to Feature Collection—Creates a feature collection item you can open in Map Viewer Classic.

      Choose Generalize features for web display to optimize the layer for web apps. You can only generalize features from layers published in the WGS 1984 Web Mercator (Auxiliary Sphere) coordinate system. Note that exported feature collections that are generalized for web display do not work in desktop and mobile apps.

      Alternatively, choose Keep original features if you need to maintain all the precision in your data, or if you intend to use the feature collection in desktop or mobile apps.

    • Export to GeoPackage—Creates an Open Geospatial Consortium (OGC) GeoPackage file containing a spatial table for each layer. If you export from the hosted feature layer, the GeoPackage contains one table for each layer in the hosted feature layer. If you export from an individual layer, only one table is present in the GeoPackage. You can download the file and save it to your computer.

Tip:

If you have privileges to perform spatial analysis, you can also export data from a hosted feature layer or hosted feature layer view that has export enabled, or export data from a feature collection using the Extract Data tool in Map Viewer Classic.

Export imagery layers to a tile package

You can export your tiled imagery layer and dynamic imagery to a tile package from the layer's Item page. At this release, you must be the hosted imagery layer owner to export to a tile package.

Note:

Exporting a hosted imagery layer to a tile package uses credits.

  1. Sign in to the organization.
  2. Open the item page of the imagery layer.
  3. On the Overview tab, click Export Data and choose Export to Tile Package.

    An Export to Tile Package pop-up appears.

  4. Provide the item details for the tile package.
    1. Type a title.
    2. Optionally, type tag terms separated by commas.
    3. Click Category to display a list of categories to specify.
    4. Type a summary, if desired.
    5. Specify the folder where you want to store the tile package.

      The estimated number of credits needed to create the tile package is displayed. If the number of credits is unacceptable, click Cancel.

    6. Click Export.

    The tile package is created.