Manage a feature layer
Learn how to set the properties and capabilities for a hosted feature layer.
You can manage hosted feature layers by using the item page in ArcGIS Online. You can use this tool to set properties such as the name and description, drawing style, field visibility, editing capabilities, and private vs public access settings. These settings control how the data is presented to applications. For example, you can limit fields that are visible or change the layer style, which also affects the fields and style in client applications. Managing feature layer properties through an item page gives you a way to centrally control how client applications view and access data.
In this tutorial, you use the item page to set the properties and capabilities for the Trails feature layer.
You need an ArcGIS account to access your dashboard and manage hosted layers. Sign up for an account for free.
Before you get started, you need your own Trails feature layer in ArcGIS Online. Only the owner of a layer can change the settings. If you don't have this layer, follow the steps below.
Go to the Import data as a feature layer tutorial and follow the steps to create a new Trails feature layer.
You only need to import the Trails GeoJSON file to create the feature layer for this tutorial.
Use the item page in ArcGIS Online to access the Trails feature layer.
Go to ArcGIS Online and sign in.
Click Content and click the Trails feature layer to open the item page.
In the item page, 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 feature layer fields, values, and records.
- Usage: View feature service requests.
- Settings: Set default and advanced permissions as well as capabilities.
In the Import data as a feature layer tutorial, you made the Trails feature layer accessible to everyone (public). The item page allows you to modify sharing options.
Click the Overview tab.
On the right side, click Share > Owner > Save. This limits access to your layer to only you.
Use the Data tab to access feature layer fields, values, and records. You can sort, calculate, edit (if you have permissions), and limit the fields displayed.
Click the Data tab. You will see a table with attributes.
At the top-right of the table, click the menu bar > Show/Hide Columns and only show the following fields:
Limiting the columns will restrict client applications to only access four of the existing fields.
Use the Visualization tab to control the features that are displayed. You can style, configure pop-ups, and display labels on a map. You can also filter the data displayed on the client using one or more SQL expressions.
Click the Visualization tab.
In the top-left panel, click the Change style icon > Options > Symbols.
Select a color (such as purple) for the polyline, then click OK > OK > Done to apply the new styling.
In the top-left panel, click the Filter icon.
Filter trails by entering:
Click Apply Filter. All trails that do not match the query will be filtered out.
Client applications will only be able to access the feature that is available in the filter.
Use the Settings tab to set permissions, editing, layer drawing, and extent.
Click the Settings tab.
- If the layer is an official source, you can mark the feature layer as authoritative.
- If the feature layer is out of date, then you can mark it as deprecated.
Delete Protection: Select to prevent accidental deletion of the feature layer.
Public Data Collection: If you have an application that relies on public data editing, then select this option. You must also enable public access to your layer using the Share button in the Overview.
Set Extent: If you want to set a new extent for the layer.
Uncheck Enable Editing for your feature layer. The following will be hidden:
- The ability to add, delete, and update attributes and geometry.
- The permission to allow editors to see and edit features.
- The permission to allow anonymous editors the same access as signed in editors.
To enhance drawing performance, you have the following options:
- Optimize layer drawing: This allows increased drawing speed of line and polygon layers. However, it requires additional storage space.
- Spatial Indexes: To increase performance when drawing features on a map when data changes frequently.
Export Data: To allow users to export your data to different formats.
To verify the settings of your feature layer, access the layer with Map Viewer.
Click the Overview tab.
On the bottom right of the page, click View to view the service URL.
Find the Service item ID, for example:
Sign out of your ArcGIS account.
Go to Map Viewer and enter the item ID:
maps.arcgis.com/apps/mapviewer/index.html?layers=<YOUR_ITEM_ID>and ensure that it prompts for credentials.
You are now able to manage the settings of your feature layer using the tabs in the item detail page in ArcGIS Online. All clients accessing the layer will access and view the data the same way.
Create a new feature layer
Use data management tools to create a new hosted feature layer.
Access feature layer data
Use ArcGIS Online tools to access and display feature layer data.
Import data as a feature layer
Use data management tools to import and create hosted feature layers.
Publish a vector tile layer
Use ArcGIS Online to publish a vector tile layer.
Add a feature layer
Access and display point, line, and polygon features from a feature service
Add a vector tile layer
Access and display a vector tile layer in a map.
Add an image tile layer
Access and display an image tile layer in a map.
Style a feature layer
Use symbols and renderers to style feature layers.
Query a feature layer (spatial)
Execute a spatial query to get features from a feature layer.
Query a feature layer (SQL)
Execute a SQL query to access polygon features from a feature layer.
Edit feature data
Add, update, and delete features in a feature service.
Display a pop-up
Format a pop-up to show attributes in a feature layer.