If you need a different view of the data represented by a hosted feature layer—for example, you want to apply different editor settings, apply different styles or filters, define which features or fields are available, or share the data to different groups than the hosted feature layer—create a hosted feature layer view of that hosted feature layer.
When you create a feature layer view, a new hosted feature layer item is added to Content. This new layer is a view of the data in the hosted feature layer, which means updates made to the data appear in the hosted feature layer and all of its hosted feature layer views. However, since the view is a separate layer, you can change properties and settings on this item separately from the hosted feature layer from which it is created. For example, you can allow members of your organization to edit the hosted feature layer but share a read-only feature layer view with the public.
Only the owner of a hosted feature layer can create a hosted feature layer view from the original layer. This is different than copying a layer, which can be done by non-owners and even public users.
Create a hosted feature layer view
Follow these steps to create a hosted feature layer view from a hosted feature layer:
- Sign in to your organization.
You must have privileges to create content, and you must be the owner of the hosted feature layer from which you want to create the view.
- Open Content > My Content and open the item page for the hosted feature layer you want to use as a source for the view.
The layer must be a hosted feature layer, not a feature layer added from the web or a feature collection.
- Click Create View on the Overview tab of the item's page.
- Type a unique title for the hosted feature layer view.
- Type tag terms separated by commas.
Tags are words or short phrases that describe your item and help people find your item when searching. Federal land is considered one tag, while Federal,land is considered two tags.
- Type a summary that describes the use and content of the view.
- Choose the folder where the hosted feature layer view will be stored and click OK.
The hosted feature layer view's item page appears when the view is created. Now you can apply the setting changes you want to the hosted feature layer view.
Hosted feature layer view settings
Settings for hosted feature layer views fall into three categories.
Settings inherited from the hosted feature layer that cannot be independently configured on the views
Hosted feature layer views inherit the following settings from the hosted feature layers from which they are created. When any of these settings change on a hosted feature layer, the settings also change on all its views; you cannot independently change these settings on the hosted feature layer view.
Settings inherited from the hosted feature layer that you can change on the view
Hosted feature layer views inherit the following from the hosted feature layer from which they are created. If you prefer a different configuration for the feature layer view, you can change the view's configuration without affecting the hosted feature layer.
Settings that can be made independently on views and the hosted feature layers from which they are created
Hosted feature layer views do not inherit the following from the hosted feature layer from which they are published. Set these separately on the view.
Considerations when creating hosted feature layer views
Keep the following in mind when you create hosted feature layer views:
- You can only make schema changes, such as adding or removing a field, to the primary hosted feature layer. Any views that exist of the primary hosted feature layer will inherit these schema changes.
- If you need to refresh the data, overwrite the hosted feature layer from which the view was created. The data updates will appear in the view.
- Usage is tracked separately for hosted feature layer views; however, feature storage is not charged for feature layer views. Storage is only charged for the primary hosted feature layer from which the view was created.
- Hosted feature layer views and the hosted feature layers from which they are created must have the same owner. To reassign ownership, the administrator must change ownership on the hosted feature layer; ownership of the layers' views will also change.